Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r64491:3e52ecf916b2
Date: 2013-05-22 15:38 -0700
http://bitbucket.org/pypy/pypy/changeset/3e52ecf916b2/
Log: Mark this function as threadsafe=True so it doesn't release the GIL,
it's very fast.
diff --git a/rpython/rtyper/module/ll_os.py b/rpython/rtyper/module/ll_os.py
--- a/rpython/rtyper/module/ll_os.py
+++ b/rpython/rtyper/module/ll_os.py
@@ -682,7 +682,7 @@
@registering_if(os, 'getpid')
def register_os_getpid(self):
- return self.extdef_for_os_function_returning_int('getpid')
+ return self.extdef_for_os_function_returning_int('getpid',
threadsafe=False)
@registering_if(os, 'getgid')
def register_os_getgid(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit