fixed some comments

This commit is contained in:
hyunghwan.chung 2018-06-29 06:14:35 +00:00
parent 1ad04320ca
commit 721ce2b540

View File

@ -947,6 +947,7 @@ static MOO_INLINE moo_oop_t await_semaphore_group (moo_t* moo, moo_oop_semaphore
moo_ooi_t count; moo_ooi_t count;
int sems_idx; int sems_idx;
/* there is a semaphore signaled in the group */
count = MOO_OOP_TO_SMOOI(sem->count); count = MOO_OOP_TO_SMOOI(sem->count);
MOO_ASSERT (moo, count > 0); MOO_ASSERT (moo, count > 0);
count--; count--;
@ -4165,7 +4166,7 @@ static MOO_INLINE int switch_process_if_needed (moo_t* moo)
{ {
moo_ntime_t ft; moo_ntime_t ft;
/* no runnable process while there is an io semaphore being waited */ /* no runnable process while there is an io semaphore being waited for */
if ((moo_oop_t)moo->sem_gcfin != moo->_nil && moo->sem_gcfin_sigreq) goto signal_sem_gcfin; if ((moo_oop_t)moo->sem_gcfin != moo->_nil && moo->sem_gcfin_sigreq) goto signal_sem_gcfin;
do do