[Python-Dev] Bugs in thread_nt.h

Antoine Pitrou solipsis at pitrou.net
Thu Mar 10 15:32:01 CET 2011


On Thu, 10 Mar 2011 12:18:22 +0100
Sturla Molden <sturla at molden.no> 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.




More information about the Python-Dev mailing list