[pypy-svn] r55340 - pypy/branch/gc+thread/pypy/module/thread
arigo at codespeak.net
arigo at codespeak.net
Wed May 28 13:55:35 CEST 2008
Author: arigo
Date: Wed May 28 13:55:34 2008
New Revision: 55340
Modified:
pypy/branch/gc+thread/pypy/module/thread/ll_thread.py
Log:
The around stuff is called automatically by rffi
even in this mode.
Modified: pypy/branch/gc+thread/pypy/module/thread/ll_thread.py
==============================================================================
--- pypy/branch/gc+thread/pypy/module/thread/ll_thread.py (original)
+++ pypy/branch/gc+thread/pypy/module/thread/ll_thread.py Wed May 28 13:55:34 2008
@@ -38,16 +38,8 @@
def _emulated_start_new_thread(func):
"NOT_RPYTHON"
import thread
- def runner():
- if rffi.aroundstate.after:
- rffi.aroundstate.after()
- try:
- func()
- finally:
- if rffi.aroundstate.before:
- rffi.aroundstate.before()
try:
- ident = thread.start_new_thread(runner, ())
+ ident = thread.start_new_thread(func, ())
except thread.error:
ident = -1
return rffi.cast(rffi.INT, ident)
More information about the Pypy-commit
mailing list