[plt-scheme] Re: Using LibFFI along with threads

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Jul 18 20:50:54 EDT 2007

One more note on the last point in my message: `q->result' should be
protected by a semaphore, and scheme_signal_received() should be called
only after `q->result' is set. Otherwise, there's a race condition on
reading `q->result' that could cause MzScheme to miss the update and
sleep when it shouldn't.


Posted on the users mailing list.