libc Sleep api performs a busy waiting
Thomas Heller
theller at ctypes.org
Tue Mar 9 11:43:23 EST 2010
Joe Fox schrieb:
> Hi,
>
> actually i have simplified my scenario a lot here ,
>
> In my actual case , i have to call a C-api which blocks on c select , in a
> separate thread.
>
> my thread is getting struck in that api , and thus blocking all the other
> threads.
> Can you point to something which will help me call this blocking C-api call
> without my thread getting struck.
>
ctypes. Releases the GIL before calling C api functions.
More information about the Python-list
mailing list