> > > What is the recommended means of receiving asynchronous(non-blocking)
> > > events in GGI? All of the GII calls seem to be blocking? What
> > > obvious element am I missing here?
> > giiEventSelect with zero timeout. Note also you can call giiTSInit
> > to make GII calls threadsafe, so you can do blocking calls in a separate
> > thread.
> My understanding of select is that it still blocks, it just multiplexes
> the blocking. Let me rephrase my question. When I open a normal file
> I can pass as a flag O_ASYNC. This will cause a SIGIO to be sent to
> the process whenever input becomes possible on the file descriptor.
> Is this possible with a gii device?
No, because you can have polled gii devices. These need not correspond to a
fildescriptor or similar entity at all. You would have to spawn off a thread
or process to do that polling.
Actually it is what the one who answered previously is suggesting.
If you want a SIGIO when something comes up, the spawned-off thread that
keeps selecting for new input can send you one. Should be relatively simple.
CU, ANdy
--
= Andreas Beck | Email : <[EMAIL PROTECTED]> =