1. Stefano Rivera
  2. cffi

Commits

Armin Rigo  committed caae153

Must initialize threads when we have callbacks. That's obscure,
but done by ctypes too.

  • Participants
  • Parent commits 403f68d
  • Branches default

Comments (0)

Files changed (1)

File c/_cffi_backend.c

View file
  • Ignore whitespace
         goto error;
     }
     assert(closure->user_data == infotuple);
+#ifdef WITH_THREAD
+    PyEval_InitThreads();
+#endif
     return (PyObject *)cd;
 
  error: