[Coco] F$Sleep, drivers, and interrupt masks
cyouse at serialtechnologies.com
Thu Sep 18 13:47:10 EDT 2008
Before I start digging through the bowels of Nitr/OS-9, I have a
question someone might have a ready answer for: is it valid for a device
driver to call F$Sleep with interrupts disabled?
Of course the assumption being that the system will re-enable them, and
possibly disable them before scheduling the sleeping driver process
The reason I ask is I'm trying to avoid a race condition; resetting a
chip results in an interrupt, but I don't want to risk the interrupt
arriving before I go to sleep - resulting in a process that never wakes
up. Pretty classic race condition.
More information about the Coco