8 lines
188 B
Plaintext
8 lines
188 B
Plaintext
|
PyThreadState *_save;
|
||
|
|
||
|
_save = PyThreadState_Swap(NULL);
|
||
|
PyEval_ReleaseLock();
|
||
|
...Do some blocking I/O operation...
|
||
|
PyEval_AcquireLock();
|
||
|
PyThreadState_Swap(_save);
|