http://qs321.pair.com?node_id=739127


in reply to Re^2: How to wait for events, and not lose any, while processing them ?
in thread How to wait for events, and not lose any, while processing them ?

That is not exactly the problem here, imagine if you will, that your interrupt-handling routine calls interrupts herself.

Now you have the same problem as I have - the 'disable interrupts' portion is similiar to the first version of the code - I stop listening for 'interrupts' while processing. The problem is that in this case, if interrupts come, then I ignore them.