Message75691
At CCP We have started using the Py_AddPendingCall() mechanism to
signal python about a completed IO operation.
However, we noticed that the existing mechanism was hoplelessly un-
thread safe. This is bad, since on Windows at least, it is very
convenient to have such callbacks happen on an arbitrary thread from
the system's thread pool.
I submit a thread-safe implementation instead to be used if WITH_THREAD
is defined.
This allows Py_AddPendingCall() to be called from any thread, from any
context, even from a PendingCall callback itself. |
|
Date |
User |
Action |
Args |
2008-11-10 11:36:35 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson |
2008-11-10 11:36:35 | kristjan.jonsson | set | messageid: <1226316995.54.0.445551761995.issue4293@psf.upfronthosting.co.za> |
2008-11-10 11:36:34 | kristjan.jonsson | link | issue4293 messages |
2008-11-10 11:36:34 | kristjan.jonsson | create | |
|