Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
19
Task/Mutex/FutureBasic/mutex.basic
Normal file
19
Task/Mutex/FutureBasic/mutex.basic
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
include "NSLog.incl"
|
||||
|
||||
void local fn DoIt
|
||||
LockRef m = fn LockInit
|
||||
|
||||
LockingLock( m )
|
||||
|
||||
if ( fn LockTry( m ) )
|
||||
NSLog(@"lock acquired") // acquire a lock -- does not block if not acquired
|
||||
else
|
||||
NSLog(@"already locked, does not block")
|
||||
end if
|
||||
|
||||
LockingUnlock( m )
|
||||
end fn
|
||||
|
||||
fn DoIt
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue