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.140 RecursionLock

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

1.140.1 RecursionLock class: instance creation  (class)
1.140.2 RecursionLock: accessing  (instance)
1.140.3 RecursionLock: mutual exclusion  (instance)
1.140.4 RecursionLock: printing  (instance)


1.140.1 RecursionLock class: instance creation

new
Answer a new semaphore


1.140.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.140.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.140.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 July, 23 2009 using texi2html