Title:

yieldLock() - release the lock held for this object.

Usage:

yieldLock(...)

Arguments:

...:
a collection of threadLock objects which are currently held by this thread and whose locks are to be released. The order in which these are passed is the order in which the locks are released. As usual, threadLock objects, strings or integers may be used as elements of this list.

Side Effect:

Other threads blocked waiting for these locks can potentially proceed.

See Also:

getLock()
tryGetLock()
threadLock

Examples:

       a = threadLock("a name",i = 1, b = list(self()))
         .
         .
       getLock(a, condition = Quote(i==2))
         # we hold the lock and i == 2, so we can do what we want
           i = 10
       yieldLock(a)

Key Words:

User Level Threads

Last modified: Wed Feb 5 16:44:55 1997