added MOO_EBADHND

This commit is contained in:
hyunghwan.chung
2017-10-30 01:11:18 +00:00
parent 2c85319cb0
commit d042f0f494
11 changed files with 185 additions and 52 deletions

View File

@ -52,9 +52,11 @@ class Semaphore(Object)
{
var waiting_head := nil,
waiting_tail := nil,
count := 0,
heapIndex := -1,
fireTimeSec := 0,
count := 0.
var(#get,#set) heapIndex := -1.
var fireTimeSec := 0,
fireTimeNsec := 0,
ioIndex := -1,
ioHandle := nil,
@ -81,16 +83,6 @@ class Semaphore(Object)
## ==================================================================
method heapIndex
{
^heapIndex
}
method heapIndex: anIndex
{
heapIndex := anIndex
}
method fireTime
{
^fireTimeSec
@ -221,6 +213,13 @@ method(#class,#abstract) xxx. => method(#class) xxx { self subclassResponsibilit
method(#primitive) _removeSemaphore: sem.
method(#primitive) _wait.
method addSemaphore: sem
{
| x |
x := self _addSemaphore: sem.
if (x isError) { thisProcess primError dump. Exception signal: ('Cannot add a semaphore - ' & thisProcess primError) }.
^x
}
method wait
{
| r |