Lock

class neko.vm.LockAvailable in neko function new() : VoidCreates a lock which is initially locked. function release() : VoidRelease a lock. The thread does not need to own the lock to be able to release it. If a lock is released several times, it can be acquired as many times. function wait( ?timeout : Float ) : BoolWaits for a lock to be released and acquire it. If timeout (in seconds) is not null and expires then the returned value is false.
version #3928, modified 2008-08-13 17:32:52 by ianxm
0 comment