Subject | Re: [firebird-support] Re: Event progamming, application do not stop |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2006-03-13T04:57:19Z |
On 11 Mar 2006 at 7:49, tailuo2002 wrote:
"counters". First call of isc_wait_for_event() deliver to you current
values of counters and thus return immediatelly. Subsequent calls
will wait for events to really happen.
isc_wait_for_event();
SY, Dimitry Sibiryakov.
>When working on synchronous mode ,I think if no event occurs, theIB (and FB) events work a bit different from your ideas. They use
>application shoud stop at isc_wait_for_event() and suspend. After an
>event occurs, the application then continues running.
"counters". First call of isc_wait_for_event() deliver to you current
values of counters and thus return immediatelly. Subsequent calls
will wait for events to really happen.
>isc_wait_for_event();// get current counters
isc_wait_for_event();
>// stop here, dont'return until any event notifications arrive.// and then get me new counters
>--
>printf("I'm here! \n");
SY, Dimitry Sibiryakov.