Function: MainLoop Purpose: Dispatcher for event-driven programs. Category: SYSTEM File: events.src Author: J.P. Terlouw Use: #include "events.h" MainLoop(); Description: MainLoop serves as the nucleus of event-driven programs. Whenever necessary it calls the functions which have been registered before by ScheduleRead(), ScheduleWrite() or ScheduleTimer(). Normally it returns when all registered functions have been descheduled. This is not the case when event handling has been delegated to the X Toolkit by calling AttachXt. In this case MainLoop() can be forced to return when BreakMainLoop() is called. This is only useful when MainLoop() was called recursively. Related Docs: events.dc3, ScheduleRead.dc3, ScheduleWrite.dc3, ScheduleTimer.dc3, Deschedule.dc3, DescheduleAll.dc3, AttachXt.dc2, BreakMainLoop.dc2. Updates: Apr 8, 1997: JPT Document created.