/*
{"description" : "A semaphore."}
*/
interface Semaphore {
/* {"@description" : "Instantiate a new semaphore object, initialised with a count of zero." } */
Semaphore()
/* {"@description" : "Decrement the semaphore's value, or if zero wait until a thread calls signal()." } */
void wait()
/* {"@description" : "Iincrement semaphore's value, unblocking a wait() if the semaphore was previously zero." } */
void signal()
}
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n os.Semaphore -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Standard Library Initialisation