2008/8/26 Fons Adriaensen <fons@email-addr-hidden>:
>
> BUT: the python interpreter will release the GIL every
> so many bytecode instructions. There is AFAICS nothing
> that would prevent it from doing this in between the two
> operations that have to be atomic - it doesn't know they
> have to be.
>
Maybe this will bring you further :
PyGILState_STATE gil_state
gil_state = PyGILState_Ensure()
// do anything
PyGILState_Release( gil_state )
see also:
http://docs.python.org/api/threads.html
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Wed Aug 27 20:15:01 2008
This archive was generated by hypermail 2.1.8 : Wed Aug 27 2008 - 20:15:01 EEST