home *** CD-ROM | disk | FTP | other *** search
-
- 'eventloop' and 'endeventloop'
-
- When your Tcl program executes "eventloop", it will then enter the
- eventloop. This loop receives Intuition messages and commands from
- other Tcl programs and processes them.
-
- If you have routines you want to install into the event loop, you may
- do so by calling Tcla_AddEventLoop with the routine and the mask of
- signal bits that you want to be called for.
-
- Only when a program is executing 'eventloop' can it receive, process
- and reply to commands sent from other Tcl programs. If you send a
- message to a Tcl program that isn't executing 'eventloop', you will
- hang until it does and receives and processes your message. Asynchronous
- messages sent by the "post" command will not cause the sender to hang.
-
- The command 'endeventloop' ends the event loop. If program foo is
- executing eventloop, doing a 'send foo endeventloop' will cause it
- to exit the loop.
-