On Thu, 10 Mar 2011 12:18:22 +0100
Sturla Molden <[email protected]> wrote:
> 
> Obvious usecases for volatile are:
> 
> - Implementation of a spinlock, where register allocation is detrimental.
> - A buffer that is filled from the "outside" with some DMA mechanism.
> - Real-time programs and games where order of execution and and timing 
> is critical, so optimization must be supressed.

- variables mutated from signal handlers

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to