Message42805
Logged In: YES
user_id=86307
It appears to me that PyAutoThreadState_Release calls
PyThreadState_Clear after releasing the GIL (if the thread
state was created by PyAutoThreadState_Ensure, then old
state will be UNLOCKED, so PyEval_ReleaseThread will be
called). It looks to me that, if the thread state is going to be
deleted, the call to Clear it should be moved up to just before
ReleaseThread, i.e.:
if (oldstate == PyAutoThreadState_UNLOCKED) {
if (tcur->autothreadstate_counter == 1)
PyThreadState_Clear(tcur);
PyEval_ReleaseThread(tcur);
}
|
|
Date |
User |
Action |
Args |
2007-08-23 15:20:35 | admin | link | issue684256 messages |
2007-08-23 15:20:35 | admin | create | |
|