[pypy-commit] pypy use-file-star-for-file: release gil around read ops

bdkearns noreply at buildbot.pypy.org
Fri Sep 12 04:42:54 CEST 2014


Author: Brian Kearns <bdkearns at gmail.com>
Branch: use-file-star-for-file
Changeset: r73498:506ac75b968f
Date: 2014-09-11 22:34 -0400
http://bitbucket.org/pypy/pypy/changeset/506ac75b968f/

Log:	release gil around read ops

diff --git a/rpython/rlib/rfile.py b/rpython/rlib/rfile.py
--- a/rpython/rlib/rfile.py
+++ b/rpython/rlib/rfile.py
@@ -89,12 +89,12 @@
 _fclose2 = (c_fclose, c_fclose_nogil)
 _pclose2 = (c_pclose, c_pclose_nogil)
 
-c_flockfile = llexternal('flockfile', [FILEP], lltype.Void, releasegil=False)
-c_funlockfile = llexternal('funlockfile', [FILEP], lltype.Void, releasegil=False)
+c_flockfile = llexternal('flockfile', [FILEP], lltype.Void)
+c_funlockfile = llexternal('funlockfile', [FILEP], lltype.Void)
 
-c_getc = llexternal('getc', [FILEP], rffi.INT, releasegil=False)
-c_getc_unlocked = llexternal('getc_unlocked', [FILEP], rffi.INT, releasegil=False)
-c_ungetc = llexternal('ungetc', [rffi.INT, FILEP], rffi.INT, releasegil=False)
+c_getc = llexternal('getc', [FILEP], rffi.INT)
+c_getc_unlocked = llexternal('getc_unlocked', [FILEP], rffi.INT)
+c_ungetc = llexternal('ungetc', [rffi.INT, FILEP], rffi.INT)
 
 if os.name == 'nt':
     c_flockfile = lambda ll_file: None


More information about the pypy-commit mailing list