without thread support. Replaced WITH_THREADS with WITH_THREAD.
- Bug #1467450: On Mac OS X 10.3, RTLD_GLOBAL is now used as the
default mode for loading shared libraries in ctypes.
+- Because of a misspelled preprocessor symbol, ctypes was always
+ compiled without thread support; this is now fixed.
+
What's New in Python 2.5 beta 2?
================================
ob_type is the metatype (the 'type'), defaults to PyType_Type,
tp_base is the base type, defaults to 'object' aka PyBaseObject_Type.
*/
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
PyEval_InitThreads();
#endif
m = Py_InitModule3("_ctypes", module_methods, module_docs);
PyObject *result;
PyObject *arglist = NULL;
int nArgs;
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
PyGILState_STATE state = PyGILState_Ensure();
#endif
Py_XDECREF(result);
Done:
Py_XDECREF(arglist);
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
PyGILState_Release(state);
#endif
}
LPVOID *ppv)
{
long result;
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
PyGILState_STATE state;
#endif
LoadPython();
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
state = PyGILState_Ensure();
#endif
result = Call_GetClassObject(rclsid, riid, ppv);
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
PyGILState_Release(state);
#endif
return result;
STDAPI DllCanUnloadNow(void)
{
long result;
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
PyGILState_STATE state = PyGILState_Ensure();
#endif
result = Call_CanUnloadNow();
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
PyGILState_Release(state);
#endif
return result;
void *resmem,
int argcount)
{
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
PyThreadState *_save = NULL; /* For Py_BLOCK_THREADS and Py_UNBLOCK_THREADS */
#endif
ffi_cif cif;
return -1;
}
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
if ((flags & FUNCFLAG_PYTHONAPI) == 0)
Py_UNBLOCK_THREADS
#endif
}
#endif
#endif
-#ifdef WITH_THREADS
+#ifdef WITH_THREAD
if ((flags & FUNCFLAG_PYTHONAPI) == 0)
Py_BLOCK_THREADS
#endif