[Python-Dev] Py_BEGIN_ALLOW_THREADS around readdir()? (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Mon Apr 17 18:19:35 CEST 2006
- Previous message: [Python-Dev] remote debugging with pdb
- Next message: [Python-Dev] Py_BEGIN_ALLOW_THREADS around readdir()?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Currently, the readdir() call releases the GIL. I believe this is not thread-safe, because readdir() does not need to be re-entrant; we should use readdir_r where available to get a thread-safe version.
Comments?
Regards, Martin
- Previous message: [Python-Dev] remote debugging with pdb
- Next message: [Python-Dev] Py_BEGIN_ALLOW_THREADS around readdir()?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]