Back: Rectangle-truncation and round off Up: Base classes Forward: RecursionLock class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.141 RecursionLock

Defined in namespace Smalltalk
Superclass: Object
Category: Language-Processes

1.141.1 RecursionLock class: instance creation  (class)
1.141.2 RecursionLock: accessing  (instance)
1.141.3 RecursionLock: mutual exclusion  (instance)
1.141.4 RecursionLock: printing  (instance)


1.141.1 RecursionLock class: instance creation

new
Answer a new semaphore


1.141.2 RecursionLock: accessing

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.


1.141.3 RecursionLock: mutual exclusion

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


1.141.4 RecursionLock: printing

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



Back: RecursionLock-mutual exclusion Up: RecursionLock Forward: Regex   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on August, 19 2010 using texi2html