Commits

Armin Rigo committed caae153

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

Comments (0)

Files changed (1)

c/_cffi_backend.c

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