[Gbbopen-developer] Significant revision of GBBopen's Portable Threads interface

Dan Corkill corkill at gbbopen.org
Wed Jul 11 17:37:02 EDT 2007


> what's a condition variable? (sending me a link is a fine answer...!)

>From Wikipedia:
http://en.wikipedia.org/wiki/Monitor_(synchronization)#Condition_variables

POSIX provides standard support for condition variables (as does Java).
 This involves providing a race-free mechanism for a thread that holds a
lock to release it and go to sleep on a queue until it awakened by some
other thread.  Once awake, the thread is guaranteed to again have the
lock before it can do anything else.

SBCL's sb-thread implementation provides condition-variable support.  An
example from their documentation can be found at:
http://www.sbcl.org/manual/Waitqueue_002fcondition-variables.html#Waitqueue_002fcondition-variables

The redesigned Portable Threads support for condition variables will not
be identical to SBCL's however.  We are looking at more closely coupling
the lock and condition variable together (nailing down the details right
now...)

-- Dan


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Gbbopen-developer mailing list