Message132238
Are you sure about MP_EXCEPTION_HAS_BEEN_SET?
semaphore.c has a more sophisticated logic:
Py_BEGIN_ALLOW_THREADS
ResetEvent(sigint_event);
res = WaitForMultipleObjects(2, handles, FALSE, msecs);
Py_END_ALLOW_THREADS
/* handle result */
if (res != WAIT_OBJECT_0 + 1)
break;
/* got SIGINT so give signal handler a chance to run */
Sleep(1);
/* if this is main thread let KeyboardInterrupt be raised */
if (PyErr_CheckSignals())
return NULL;
/* recalculate timeout */
if (msecs != INFINITE) {
ticks = GetTickCount();
if ((DWORD)(ticks - start) >= full_msecs)
Py_RETURN_FALSE;
msecs = full_msecs - (ticks - start);
} |
|
Date |
User |
Action |
Args |
2011-03-26 13:49:25 | pitrou | set | recipients:
+ pitrou, kristjan.jonsson, tim.golden, jnoller, brian.curtin, asksol |
2011-03-26 13:49:23 | pitrou | link | issue11668 messages |
2011-03-26 13:49:23 | pitrou | create | |
|