author | Claus Gittinger <cg@exept.de> |
Fri, 19 Apr 1996 12:47:25 +0200 | |
changeset 1221 | 46d72af387e9 |
parent 1185 | 2b24258b4f24 |
child 1273 | f8449f53a6a3 |
permissions | -rw-r--r-- |
1 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
159 | 3 |
All Rights Reserved |
1 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
375 | 13 |
Object subclass:#Semaphore |
757 | 14 |
instanceVariableNames:'count waitingProcesses' |
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'Kernel-Processes' |
|
699 | 18 |
! |
1 | 19 |
|
69 | 20 |
!Semaphore class methodsFor:'documentation'! |
21 |
||
88 | 22 |
copyright |
23 |
" |
|
24 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
159 | 25 |
All Rights Reserved |
88 | 26 |
|
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
69 | 36 |
documentation |
37 |
" |
|
38 |
Semaphores are used to synchronize processes providing a nonBusy wait |
|
39 |
mechanism. A process can wait for the availability of some resource by |
|
93 | 40 |
performing a Semaphore>>wait, which will suspend the process until the |
41 |
resource becomes available. Signalling is done by (another process performing) |
|
42 |
Semaphore>>signal. |
|
159 | 43 |
If the resource has been already available before the wait, no suspending is |
69 | 44 |
done, but the resource immediately allocated. |
93 | 45 |
There are also semaphores for mutual access to a critical region |
46 |
(Semaphore>>forMutualExclusion and Semaphore>>critical:). |
|
88 | 47 |
|
159 | 48 |
You can also attach semaphores to external events (such as I/O arrival or |
183 | 49 |
timer events. This is done by telling the Processor to signal the semaphore |
50 |
under some condition. |
|
159 | 51 |
See 'Processor>>signal:afterSeconds:', 'Processor>>signal:onInput:' etc. |
52 |
||
88 | 53 |
See examples in doc/coding. |
69 | 54 |
" |
55 |
! ! |
|
56 |
||
1 | 57 |
!Semaphore class methodsFor:'instance creation'! |
58 |
||
699 | 59 |
forMutualExclusion |
60 |
"create & return a new semaphore which allows exactly one process to |
|
61 |
wait on it without blocking" |
|
62 |
||
63 |
^ super new setCount:1 |
|
64 |
! |
|
65 |
||
1 | 66 |
new |
67 |
"create & return a new semaphore which blocks until a signal is sent" |
|
68 |
||
69 |
^ super new setCount:0 |
|
70 |
! |
|
71 |
||
72 |
new:n |
|
73 |
"create & return a new semaphore which allows n waits before |
|
74 |
blocking" |
|
75 |
||
76 |
^ super new setCount:n |
|
699 | 77 |
! ! |
1 | 78 |
|
757 | 79 |
!Semaphore methodsFor:'friend-class interface'! |
80 |
||
81 |
checkAndRegisterProcess:process |
|
82 |
" |
|
83 |
interface for SemaphoreSet. |
|
84 |
If the semaphore is available, decrement it and return true. |
|
85 |
Otherwise register our process to be wakened up once the semaphore is available. |
|
86 |
" |
|
87 |
||
88 |
||
89 |
" |
|
90 |
this works only since interrupts are only serviced at |
|
91 |
message send and method-return time .... |
|
92 |
If you add a message send into the ifTrue:-block, things will |
|
93 |
go mad ... (especially be careful when adding a debugPrint-here) |
|
94 |
" |
|
95 |
count ~~ 0 ifTrue:[ |
|
926
101239898989
unwind block over wait (in critical)
Claus Gittinger <cg@exept.de>
parents:
770
diff
changeset
|
96 |
count := count - 1. |
101239898989
unwind block over wait (in critical)
Claus Gittinger <cg@exept.de>
parents:
770
diff
changeset
|
97 |
^ true |
757 | 98 |
]. |
1122 | 99 |
(waitingProcesses identityIndexOf:process) == 0 ifTrue:[ |
926
101239898989
unwind block over wait (in critical)
Claus Gittinger <cg@exept.de>
parents:
770
diff
changeset
|
100 |
waitingProcesses add:process. |
757 | 101 |
]. |
102 |
^ false |
|
103 |
||
104 |
"Modified: 14.12.1995 / 10:32:17 / stefan" |
|
105 |
! |
|
106 |
||
107 |
unregisterProcess:process |
|
108 |
" |
|
109 |
interface for SemaphoreSet. |
|
110 |
Unregister our process from the Semaphore |
|
111 |
" |
|
112 |
||
769
84cc1b36f27e
Fix cleanup after process resume in SemaphoreSet.
Stefan Vogel <sv@exept.de>
parents:
757
diff
changeset
|
113 |
waitingProcesses remove:process ifAbsent:[]. |
757 | 114 |
|
115 |
"Created: 14.12.1995 / 10:31:50 / stefan" |
|
116 |
! ! |
|
117 |
||
699 | 118 |
!Semaphore methodsFor:'printing & storing'! |
1 | 119 |
|
699 | 120 |
displayString |
121 |
^ self class name , '(' , count printString , ')' |
|
1 | 122 |
! ! |
123 |
||
124 |
!Semaphore methodsFor:'private accessing'! |
|
125 |
||
126 |
setCount:n |
|
375 | 127 |
waitingProcesses := OrderedCollection new:3. |
1 | 128 |
count := n |
129 |
! ! |
|
130 |
||
217 | 131 |
!Semaphore methodsFor:'queries '! |
132 |
||
133 |
wouldBlock |
|
134 |
"return true, if the receiver would block the activeProcess |
|
135 |
if a wait was performed. False otherwise." |
|
136 |
||
137 |
^ count == 0 |
|
138 |
! ! |
|
139 |
||
699 | 140 |
!Semaphore methodsFor:'wait & signal'! |
141 |
||
142 |
critical:aBlock |
|
143 |
"evaluate aBlock as a critical region; the receiver must be |
|
144 |
created using Semaphore>>forMutualExclusion" |
|
145 |
||
1185
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
146 |
|retVal gotSema| |
926
101239898989
unwind block over wait (in critical)
Claus Gittinger <cg@exept.de>
parents:
770
diff
changeset
|
147 |
|
101239898989
unwind block over wait (in critical)
Claus Gittinger <cg@exept.de>
parents:
770
diff
changeset
|
148 |
[ |
1185
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
149 |
gotSema := self wait. |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
150 |
retVal := aBlock value. |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
151 |
] valueOnUnwindDo:[ |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
152 |
gotSema notNil ifTrue:[self signal]. |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
153 |
]. |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
154 |
self signal. |
926
101239898989
unwind block over wait (in critical)
Claus Gittinger <cg@exept.de>
parents:
770
diff
changeset
|
155 |
^ retVal |
699 | 156 |
|
157 |
" |
|
158 |
the example below is stupid (it should use a SharedQueue, |
|
159 |
or at least a Queue with critical regions). |
|
160 |
Anyhow, it demonstrates how two processes lock each other |
|
161 |
from accessing coll at the same time |
|
162 |
||
163 |
|sema coll| |
|
164 |
||
165 |
sema := Semaphore forMutualExclusion. |
|
166 |
coll := OrderedCollection new:10. |
|
167 |
||
168 |
[ |
|
1185
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
169 |
1 to:1000 do:[:i | |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
170 |
sema critical:[ |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
171 |
coll addLast:i. |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
172 |
(Delay forSeconds:0.1) wait. |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
173 |
] |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
174 |
] |
699 | 175 |
] forkAt:4. |
176 |
||
177 |
[ |
|
1185
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
178 |
1 to:1000 do:[:i | |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
179 |
sema critical:[ |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
180 |
coll removeFirst. |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
181 |
(Delay forSeconds:0.1) wait. |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
182 |
] |
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
183 |
] |
699 | 184 |
] forkAt:4. |
185 |
" |
|
1185
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
186 |
|
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
187 |
"Modified: 16.4.1996 / 10:00:46 / stefan" |
699 | 188 |
! |
189 |
||
190 |
signal |
|
191 |
"waking up (first) waiter" |
|
192 |
||
193 |
|p wasBlocked| |
|
362 | 194 |
|
699 | 195 |
wasBlocked := OperatingSystem blockInterrupts. |
1031 | 196 |
[ |
197 |
count := count + 1. |
|
198 |
waitingProcesses notEmpty ifTrue:[ |
|
199 |
p := waitingProcesses removeFirst. |
|
200 |
p resume. |
|
201 |
]. |
|
202 |
] valueNowOrOnUnwindDo:[ |
|
203 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
|
204 |
] |
|
205 |
||
206 |
"Modified: 28.2.1996 / 21:23:10 / cg" |
|
699 | 207 |
! |
208 |
||
209 |
signalForAll |
|
210 |
"signal the semaphore for all waiters. |
|
211 |
This can be used for process synchronization, if multiple processes are |
|
212 |
waiting for a common event." |
|
213 |
||
214 |
|wasBlocked| |
|
215 |
||
216 |
[waitingProcesses notEmpty] whileTrue:[ |
|
1031 | 217 |
wasBlocked := OperatingSystem blockInterrupts. |
218 |
[ |
|
219 |
waitingProcesses notEmpty ifTrue:[ |
|
220 |
self signal |
|
221 |
]. |
|
222 |
] valueNowOrOnUnwindDo:[ |
|
223 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
|
224 |
] |
|
699 | 225 |
] |
1031 | 226 |
|
227 |
"Modified: 28.2.1996 / 21:23:38 / cg" |
|
699 | 228 |
! |
362 | 229 |
|
699 | 230 |
signalIf |
231 |
"signal the semaphore, but only if being waited upon. |
|
232 |
This can be used for one-shot semaphores (i.e. not remembering |
|
233 |
previous signals)" |
|
234 |
||
235 |
|wasBlocked| |
|
236 |
||
237 |
waitingProcesses notEmpty ifTrue:[ |
|
1031 | 238 |
wasBlocked := OperatingSystem blockInterrupts. |
239 |
[ |
|
240 |
waitingProcesses notEmpty ifTrue:[ |
|
241 |
self signal |
|
242 |
]. |
|
243 |
] valueNowOrOnUnwindDo:[ |
|
244 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
|
245 |
] |
|
699 | 246 |
] |
1031 | 247 |
|
248 |
"Modified: 28.2.1996 / 21:23:57 / cg" |
|
699 | 249 |
! |
250 |
||
251 |
signalOnce |
|
252 |
"wakeup waiters - but only once. |
|
253 |
I.e. if the semaphore has already been signalled, this |
|
254 |
is ignored." |
|
255 |
||
256 |
|wasBlocked| |
|
257 |
||
258 |
count == 0 ifTrue:[ |
|
1031 | 259 |
wasBlocked := OperatingSystem blockInterrupts. |
260 |
[ |
|
261 |
count == 0 ifTrue:[ |
|
262 |
self signal |
|
263 |
]. |
|
264 |
] valueNowOrOnUnwindDo:[ |
|
265 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
|
266 |
] |
|
699 | 267 |
] |
1031 | 268 |
|
269 |
"Modified: 28.2.1996 / 21:24:08 / cg" |
|
699 | 270 |
! |
1 | 271 |
|
272 |
wait |
|
273 |
"wait for the semaphore" |
|
274 |
||
93 | 275 |
|current wasBlocked| |
1 | 276 |
|
277 |
" |
|
159 | 278 |
this works only since interrupts are only serviced at |
279 |
message send and method-return time .... |
|
280 |
If you add a message send into the ifTrue:-block, things will |
|
281 |
go mad ... (especially be careful when adding a debugPrint-here) |
|
93 | 282 |
" |
283 |
count ~~ 0 ifTrue:[ |
|
1031 | 284 |
count := count - 1. |
285 |
^ self |
|
93 | 286 |
]. |
287 |
||
302 | 288 |
current := Processor activeProcess. |
159 | 289 |
|
302 | 290 |
wasBlocked := OperatingSystem blockInterrupts. |
159 | 291 |
" |
292 |
need a while-loop here, since more than one process may |
|
293 |
wait for it and another one may also wake up. |
|
294 |
Thus, the count is not always non-zero after returning from |
|
295 |
suspend. |
|
296 |
" |
|
1 | 297 |
[count == 0] whileTrue:[ |
1031 | 298 |
waitingProcesses add:current. |
299 |
" |
|
300 |
for some more descriptive info in processMonitor ... |
|
301 |
... set the state to #wait (instead of #suspend) |
|
302 |
" |
|
303 |
[ |
|
304 |
current suspendWithState:#wait |
|
305 |
] valueOnUnwindDo:[ |
|
306 |
waitingProcesses remove:current ifAbsent:[]. |
|
307 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
|
308 |
] |
|
1 | 309 |
]. |
10 | 310 |
count := count - 1. |
93 | 311 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
752
0259dd855289
new suspendAction, Semaphore & ProcSched stuff from stefan
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
312 |
|
0259dd855289
new suspendAction, Semaphore & ProcSched stuff from stefan
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
313 |
"Modified: 13.12.1995 / 13:26:33 / stefan" |
1031 | 314 |
"Modified: 28.2.1996 / 21:24:33 / cg" |
10 | 315 |
! |
316 |
||
329 | 317 |
waitUncounted |
318 |
"wait for the semaphore; do not consume the resource |
|
319 |
(i.e. do not count down)" |
|
320 |
||
321 |
|current wasBlocked| |
|
322 |
||
323 |
" |
|
324 |
this works only since interrupts are only serviced at |
|
325 |
message send and method-return time .... |
|
326 |
If you add a message send into the ifTrue:-block, things will |
|
327 |
go mad ... (especially be careful when adding a debugPrint-here) |
|
328 |
" |
|
329 |
count ~~ 0 ifTrue:[ |
|
1031 | 330 |
^ self |
329 | 331 |
]. |
332 |
||
333 |
current := Processor activeProcess. |
|
334 |
||
335 |
wasBlocked := OperatingSystem blockInterrupts. |
|
336 |
" |
|
337 |
need a while-loop here, since more than one process may |
|
338 |
wait for it and another one may also wake up. |
|
339 |
Thus, the count is not always non-zero after returning from |
|
340 |
suspend. |
|
341 |
" |
|
342 |
[count == 0] whileTrue:[ |
|
1031 | 343 |
waitingProcesses add:current. |
344 |
" |
|
345 |
for some more descriptive info in processMonitor ... |
|
346 |
... set the state to #wait (instead of #suspend) |
|
347 |
" |
|
348 |
[ |
|
349 |
current suspendWithState:#wait |
|
350 |
] valueOnUnwindDo:[ |
|
351 |
waitingProcesses remove:current ifAbsent:[]. |
|
352 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
|
353 |
] |
|
329 | 354 |
]. |
355 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
|
752
0259dd855289
new suspendAction, Semaphore & ProcSched stuff from stefan
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
356 |
|
0259dd855289
new suspendAction, Semaphore & ProcSched stuff from stefan
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
357 |
"Modified: 13.12.1995 / 13:26:49 / stefan" |
1031 | 358 |
"Modified: 28.2.1996 / 21:24:43 / cg" |
329 | 359 |
! |
360 |
||
159 | 361 |
waitWithTimeout:seconds |
362 |
"wait for the semaphore, but abort the wait after some time. |
|
770
402958905760
protocol of waitWithTImeOut: changed
Claus Gittinger <cg@exept.de>
parents:
769
diff
changeset
|
363 |
return the receiver if semaphore triggered normal, nil if we return |
926
101239898989
unwind block over wait (in critical)
Claus Gittinger <cg@exept.de>
parents:
770
diff
changeset
|
364 |
due to a timeout. |
101239898989
unwind block over wait (in critical)
Claus Gittinger <cg@exept.de>
parents:
770
diff
changeset
|
365 |
The seconds-argument may be a float (i.e. use 0.1 for a 100ms timeout). |
101239898989
unwind block over wait (in critical)
Claus Gittinger <cg@exept.de>
parents:
770
diff
changeset
|
366 |
With zero timeout, this can be used to poll a semaphore |
101239898989
unwind block over wait (in critical)
Claus Gittinger <cg@exept.de>
parents:
770
diff
changeset
|
367 |
(which is not the intend of semaphores, though)." |
159 | 368 |
|
369 |
|current timeoutOccured wasBlocked unblock now endTime| |
|
370 |
||
371 |
" |
|
372 |
this works only since interrupts are only serviced at |
|
373 |
message send and method-return time .... |
|
374 |
If you add a message send into the ifTrue:-block, things will |
|
375 |
go mad ... (especially be careful when adding a debugPrint-here) |
|
376 |
" |
|
377 |
count ~~ 0 ifTrue:[ |
|
1031 | 378 |
count := count - 1. |
379 |
^ self |
|
159 | 380 |
]. |
381 |
||
382 |
" |
|
383 |
with zero-timeout, this is a poll |
|
384 |
" |
|
385 |
seconds = 0 ifTrue:[ |
|
1031 | 386 |
^ nil |
159 | 387 |
]. |
388 |
||
302 | 389 |
current := Processor activeProcess. |
390 |
||
159 | 391 |
wasBlocked := OperatingSystem blockInterrupts. |
392 |
||
393 |
" |
|
394 |
calculate the end-time |
|
395 |
" |
|
396 |
now := OperatingSystem getMillisecondTime. |
|
397 |
endTime := OperatingSystem millisecondTimeAdd:now and:(seconds * 1000). |
|
398 |
||
399 |
unblock := [timeoutOccured := true. Processor resume:current]. |
|
400 |
Processor addTimedBlock:unblock for:current atMilliseconds:endTime. |
|
401 |
||
402 |
" |
|
403 |
need a while-loop here, since more than one process may |
|
404 |
wait for it and another one may also wake up. |
|
405 |
Thus, the count is not always non-zero after returning from |
|
406 |
suspend. |
|
407 |
" |
|
408 |
[count == 0] whileTrue:[ |
|
1031 | 409 |
waitingProcesses add:current. |
302 | 410 |
|
1031 | 411 |
timeoutOccured := false. |
412 |
" |
|
413 |
for some more descriptive info in processMonitor ... |
|
414 |
... set the state to #wait (instead of #suspend) |
|
415 |
" |
|
416 |
[ |
|
417 |
current suspendWithState:#wait. |
|
418 |
] valueOnUnwindDo:[ |
|
419 |
waitingProcesses remove:current ifAbsent:[]. |
|
420 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
|
421 |
]. |
|
159 | 422 |
|
1031 | 423 |
timeoutOccured ifTrue:[ |
424 |
waitingProcesses remove:current ifAbsent:[]. |
|
425 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
|
426 |
^ nil |
|
427 |
]. |
|
159 | 428 |
]. |
429 |
Processor removeTimedBlock:unblock. |
|
430 |
count := count - 1. |
|
431 |
wasBlocked ifFalse:[OperatingSystem unblockInterrupts]. |
|
770
402958905760
protocol of waitWithTImeOut: changed
Claus Gittinger <cg@exept.de>
parents:
769
diff
changeset
|
432 |
^ self |
752
0259dd855289
new suspendAction, Semaphore & ProcSched stuff from stefan
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
433 |
|
0259dd855289
new suspendAction, Semaphore & ProcSched stuff from stefan
Claus Gittinger <cg@exept.de>
parents:
699
diff
changeset
|
434 |
"Modified: 13.12.1995 / 13:27:24 / stefan" |
1031 | 435 |
"Modified: 28.2.1996 / 21:24:56 / cg" |
699 | 436 |
! ! |
77 | 437 |
|
699 | 438 |
!Semaphore class methodsFor:'documentation'! |
183 | 439 |
|
699 | 440 |
version |
1185
2b24258b4f24
Fix in critical: don't signal a semaphore that we didn't get when unwinding.
Stefan Vogel <sv@exept.de>
parents:
1122
diff
changeset
|
441 |
^ '$Header: /cvs/stx/stx/libbasic/Semaphore.st,v 1.33 1996-04-16 10:58:39 stefan Exp $' |
1 | 442 |
! ! |