[Python-Dev] Py_BEGIN_ALLOW_THREADS around readdir()?

"Martin v. Löwis" martin at v.loewis.de
Mon Apr 17 18:19:35 CEST 2006


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


More information about the Python-Dev mailing list