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