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.
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)