Subject | Re: Event progamming, application do not stop |
---|---|
Author | tailuo2002 |
Post date | 2006-06-01T07:01:23Z |
Fb don't stop at all. I think FB can't do it.
--- In firebird-support@yahoogroups.com, "Dimitry Sibiryakov"
<SD@...> wrote:
--- In firebird-support@yahoogroups.com, "Dimitry Sibiryakov"
<SD@...> wrote:
>an
> On 11 Mar 2006 at 7:49, tailuo2002 wrote:
>
> >When working on synchronous mode ,I think if no event occurs, the
> >application shoud stop at isc_wait_for_event() and suspend. After
> >event occurs, the application then continues running.use
>
> IB (and FB) events work a bit different from your ideas. They
> "counters". First call of isc_wait_for_event() deliver to youcurrent
> 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.
>