Message143382
| Author |
ncoghlan |
| Recipients |
arigo, asvetlov, barry, daniel.urban, nadeem.vawda, ncoghlan, pitrou |
| Date |
2011年09月02日.06:02:17 |
| SpamBayes Score |
3.5852797e-06 |
| Marked as misclassified |
No |
| Message-id |
<1314943337.88.0.944459476918.issue12850@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I quite like the last idea. Something like:
_PyEval_SuspendOtherThreads(PyThreadState *tstate, PyThread_lock_type lock);
All threads other than tstate will be prevented from executing further interpreter bytecodes until "lock" is released.
Offering this API might pose a problem for various "superinstruction" concepts in the future, though. |
|