home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 488.lha / TCL_alpha2 / tcl.lzh / tcl / docs / tcla / loop.doc < prev    next >
Encoding:
Text File  |  1990-05-04  |  894 b   |  21 lines

  1.  
  2. 'eventloop' and 'endeventloop' 
  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. If you have routines you want to install into the event loop, you may
  9. do so by calling Tcla_AddEventLoop with the routine and the mask of
  10. signal bits that you want to be called for.
  11.  
  12. Only when a program is executing 'eventloop' can it receive, process
  13. and reply to commands sent from other Tcl programs.  If you send a
  14. message to a Tcl program that isn't executing 'eventloop', you will
  15. hang until it does and receives and processes your message.  Asynchronous
  16. messages sent by the "post" command will not cause the sender to hang.
  17.  
  18. The command 'endeventloop' ends the event loop.  If program foo is
  19. executing eventloop, doing a 'send foo endeventloop' will cause it
  20. to exit the loop.
  21.