Re: Multiple asynchronous operations

Michael Abbott <[email protected]> Thu, 17 Sep 2009 09:34:28 -0700 (PDT)
Newsgroups gmane.comp.lib.state-threads.user
Message-ID <[email protected]>
> that only applies to I/O, as opposed to asynchronous operations in
> general, such as mutex locking, sleeping, or any other user-defined
> asynchronous operation.

Yes and no.  Yes, in that st_poll() does directly support waiting for
I/O only.  No, because other async operations can map to I/O by reading
and writing a pipe or socketpair.  For instance, user-defined lock
functions could write something to a pipe whenever they lock or unlock a
lock, and another thread could poll and read from the pipe to learn when
such actions happen.  This is how we recommend translating UNIX signals
to I/O operations too; see
        http://state-threads.sourceforge.net/docs/notes.html


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf