On Mon, 29 Aug 2005, Micha Nelissen wrote:

> On Mon, 29 Aug 2005 23:22:53 +0200 (CEST)
> Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> 
> > On Mon, 29 Aug 2005, Micha Nelissen wrote:
> > 
> > > Do you know the TThread.Synchronize eventloop hooks ? (WakeMainThread and
> > > friends). I think this can be done similarly ?
> > 
> > I was thinking along the following lines: the server object
> > hooks in the Idle handler of the application, and when the 
> > application goes idle, it checks if a message is available.
> > if so, it reads it and calls OnMessage. 
> 
> This is not enough. The "hook" you describe is a CheckMessage procedure.
> You also need a procedural var (like WakeMainThread), which the gtk and
> win32 widgetsets can handle when a new message arrives, and thus to "wake"
> the main thread loop waiting for a user action.
> 
> Otherwise all ipc message would be ignored until the user does something
> (not what you want most of the cases).

But isn't that is what the Idle handler is for ? 
It's called when the user does nothing ?
That is how all actions work, after all...

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to