On Thu Jan 2 18:18:54 EST 2014, [email protected] wrote: > that said, just holding alarms qlock while setting up->alarm = 0 > is not enougth when you want to guarantee that no alarms will be > delivered when the alarm(0) syscall returns. you would also need to > remove a potentially posted alarm note from your note array and > reset up->notepending (all under debug qlock of course).
that's true. up->nnote is not atomicly incremented. alarm is an insideous little monster. it looks like a simple interface, but it is not. - erik
