(Win32 API) callback to Python, threading hiccups
Francois De Serres
fdeserres at gmx.net
Tue Jul 5 16:57:52 EDT 2005
Christopher Subich wrote:
>Francois De Serres wrote:
>
>
>>- so, on callback, I create a new thread, after checking that the
>>previous one has returned already (WaitOnSingleObject(mythread)) so we
>>only have one thread involved.
>>
>>
>
>Uh... to me, this looks like a frighteningly inefficient way of doing
>things. How about using a synchronous queue to post the data to a
>processing thread? That way, you don't have to create an entierly new
>thread each time you receive data in the callback.
>
>
Thanks for the tip, and sorry for frightening you. Maybe you can help as
well with my issue?
Francois
More information about the Python-list
mailing list