Commits

Armin Rigo  committed caae153

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

  • Participants
  • Parent commits 403f68d

Comments (0)

Files changed (1)

File c/_cffi_backend.c

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