home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / tcl_447.lzh / TCL / tcl.lzh / tcl / help / eventloop < prev    next >
Text File  |  1990-05-03  |  692b  |  17 lines

  1.  
  2. 'eventloop' 
  3.  
  4. When your Tcl program executes "eventloop", it will then enter the
  5. eventloop.  This loop receives Intuition messages and commands from
  6. other Tcl programs and processes them.
  7.  
  8. Only when a program is executing 'eventloop' can it receive, process
  9. and reply to commands sent from other Tcl programs.  If you send a
  10. message to a Tcl program that isn't executing 'eventloop', you will
  11. hang until it does and receives and processes your message.  Asynchronous
  12. messages sent by the "post" command will not cause the sender to hang.
  13.  
  14. The command 'endeventloop' ends the event loop.  If program foo is
  15. executing eventloop, doing a 'send foo endeventloop' will cause it
  16. to exit the loop.
  17.