Set SNF_SYNC flag for timer, as the timer notification should be
serialized.
This commit is contained in:
parent
16da845ce6
commit
e99490121b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user