Category: Language-Processes
Superclass: Object

Method category index

accessing (instance)
mutual exclusion (instance)
printing (instance)

accessing (instance)

isOwnerProcess
Answer whether the receiver is the owner of the lock.

name

Answer a user-defined name for the lock.

name: aString

Set to aString the user-defined name for the lock.

waitingProcesses

Answer the set of processes that are waiting on the semaphore.

wouldBlock

Answer whether sending #wait to the receiver would suspend the active process.

top


mutual exclusion (instance)

critical: aBlock
Wait for the receiver to be free, execute aBlock and signal the receiver again. Return the result of evaluating aBlock.

top


printing (instance)

printOn: aStream
Print a human-readable represention of the receiver on aStream.

top