Set SNF_SYNC flag for timer, as the timer notification should be

serialized.
This commit is contained in:
davidxu 2006-03-08 00:34:54 +00:00
parent 16da845ce6
commit e99490121b

View File

@ -121,6 +121,7 @@ __timer_create(clockid_t clockid, struct sigevent *evp, timer_t *timerid)
errno = err; errno = err;
return (-1); return (-1);
} }
sn->sn_flags |= SNF_SYNC;
sn->sn_dispatch = timer_dispatch; sn->sn_dispatch = timer_dispatch;
sn->sn_id = timer->oshandle; sn->sn_id = timer->oshandle;
timer->node = sn; timer->node = sn;