changed chain_to_semaphore() to be more fault resistent
This commit is contained in:
parent
c8e22fbd92
commit
87cf4f4b6a
@ -172,7 +172,7 @@ class System(Apex)
|
||||
/* TODO: end redo */
|
||||
|
||||
caller terminate.
|
||||
//(Processor _processById: 1) resume. <---- i shouldn't do ths. but, this system causes VM assertion failure. fix it....
|
||||
(Processor _processById: 1) resume. //<---- i shouldn't do ths. but, this system causes VM assertion failure. fix it....
|
||||
|
||||
System logNl: '>>>>End of OS signal handler process ' & (thisProcess id) asString.
|
||||
].
|
||||
|
@ -537,6 +537,8 @@ static MOO_INLINE void chain_into_semaphore (moo_t* moo, moo_oop_process_t proc,
|
||||
/* a process chained to a semaphore cannot get chained to
|
||||
* a semaphore again. a process can get chained to a single semaphore
|
||||
* or a single semaphore group only */
|
||||
if ((moo_oop_t)proc->sem != moo->_nil) return; /* ignore it if it happens anyway. TODO: is it desirable???? */
|
||||
|
||||
MOO_ASSERT (moo, (moo_oop_t)proc->sem == moo->_nil);
|
||||
MOO_ASSERT (moo, (moo_oop_t)proc->sem_wait.prev == moo->_nil);
|
||||
MOO_ASSERT (moo, (moo_oop_t)proc->sem_wait.next == moo->_nil);
|
||||
|
Loading…
Reference in New Issue
Block a user