RecursionLock.st
changeset 1273 f8449f53a6a3
parent 1216 d7cbc6eb8dd4
child 1294 e26bbb61f6b2
equal deleted inserted replaced
1272:b45ddd6d6ec3 1273:f8449f53a6a3
    40     like a Semaphore for mutual exclusion, but avoids the deadlock
    40     like a Semaphore for mutual exclusion, but avoids the deadlock
    41     if a critical region is reentered by the same process again.
    41     if a critical region is reentered by the same process again.
    42     I.e. allows reentering the critical region if the current process 
    42     I.e. allows reentering the critical region if the current process 
    43     is the one which did the original locking.
    43     is the one which did the original locking.
    44 
    44 
       
    45     [see also:]
       
    46         Semaphore
       
    47         Process ProcessorScheduler
       
    48 "
       
    49 !
       
    50 
       
    51 examples
       
    52 "
    45     example:
    53     example:
    46 
    54 
    47         |lock|
    55         |lock|
    48 
    56 
    49         lock := RecursionLock new.
    57         lock := RecursionLock new.
   142 ! !
   150 ! !
   143 
   151 
   144 !RecursionLock class methodsFor:'documentation'!
   152 !RecursionLock class methodsFor:'documentation'!
   145 
   153 
   146 version
   154 version
   147     ^ '$Header: /cvs/stx/stx/libbasic/RecursionLock.st,v 1.10 1996-04-18 19:12:03 cg Exp $'
   155     ^ '$Header: /cvs/stx/stx/libbasic/RecursionLock.st,v 1.11 1996-04-23 19:32:29 cg Exp $'
   148 ! !
   156 ! !