[pypy-svn] r45561 - pypy/dist/pypy/module/thread
fijal at codespeak.net
fijal at codespeak.net
Thu Aug 9 09:39:38 CEST 2007
Author: fijal
Date: Thu Aug 9 09:39:36 2007
New Revision: 45561
Modified:
pypy/dist/pypy/module/thread/ll_thread.py
Log:
Oops, didn't mean to kill error handling
Modified: pypy/dist/pypy/module/thread/ll_thread.py
==============================================================================
--- pypy/dist/pypy/module/thread/ll_thread.py (original)
+++ pypy/dist/pypy/module/thread/ll_thread.py Thu Aug 9 09:39:36 2007
@@ -81,7 +81,10 @@
def ll_start_new_thread(l_func, arg):
l_arg = cast_instance_to_base_ptr(arg)
l_arg = rffi.cast(rffi.VOIDP, l_arg)
- return c_thread_start(l_func, l_arg)
+ ident = c_thread_start(l_func, l_arg)
+ if ident == -1:
+ raise ThreadError("can't start new thread")
+ return ident
class LLStartNewThread(ExtRegistryEntry):
_about_ = start_new_thread
More information about the Pypy-commit
mailing list