Package concurrent_tree_crawler :: Package common :: Package threads :: Module rw_lock :: Class _LightSwitch
[hide private]
[frames] | no frames]

Class _LightSwitch

source code

An auxiliary "light switch"-like object. The first thread turns on the "switch", the last one turns it off (see [1, sec. 4.2.2] for details).

Instance Methods [hide private]
 
__init__(self) source code
 
acquire(self, lock) source code
 
release(self, lock) source code