RosettaCodeData/Task/Mutex/PureBasic/mutex-1.basic

6 lines
112 B
Plaintext

MyMutex=CreateMutex()
Result = TryLockMutex(MyMutex)
LockMutex(MyMutex)
UnlockMutex(MyMutex)
FreeMutex(MyMutex)