changed moo_getpfnum().
added argument count checks when processing primitive method pragmas
This commit is contained in:
@ -124,18 +124,10 @@ class Semaphore(Object)
|
||||
|
||||
## ==================================================================
|
||||
|
||||
method signal
|
||||
{
|
||||
<primitive: #_semaphore_signal>
|
||||
self primitiveFailed.
|
||||
}
|
||||
|
||||
method wait
|
||||
{
|
||||
<primitive: #_semaphore_wait>
|
||||
self primitiveFailed.
|
||||
}
|
||||
method(#primitive) signal.
|
||||
method(#primitive) wait.
|
||||
|
||||
(*
|
||||
method waitWithTimeout: seconds
|
||||
{
|
||||
<primitive: #_semaphore_wait>
|
||||
@ -147,7 +139,7 @@ class Semaphore(Object)
|
||||
<primitive: #_semaphore_wait>
|
||||
self primitiveFailed
|
||||
}
|
||||
|
||||
*)
|
||||
method critical: aBlock
|
||||
{
|
||||
self wait.
|
||||
|
Reference in New Issue
Block a user