Synchronous Event Notification

From InterBase
Jump to: navigation, search

Go Up to Understanding the Event Mechanism


When an application depends on the occurrence of a specific event for processing, it should use synchronous event notification to suspend its own execution until the event occurs. For example, an automated stock trading application that buys or sells stock when specific price changes occur might start execution, set up EPBs, register interest in a set of stocks, then suspend its own execution until those price changes occur.

The isc_wait_for_event() function provides synchronous event handling for an application. For more information about synchronous event handling, see Waiting on Events with isc_wait_for_event().