2008/8/26 Fons Adriaensen <[EMAIL PROTECTED]>:
>
> 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
[email protected]
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Reply via email to