Author: Brian Kearns <bdkea...@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
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to