summaryrefslogtreecommitdiffstats
path: root/gobject/pygobject-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'gobject/pygobject-private.h')
-rw-r--r--gobject/pygobject-private.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/gobject/pygobject-private.h b/gobject/pygobject-private.h
index eb4b107..d826f92 100644
--- a/gobject/pygobject-private.h
+++ b/gobject/pygobject-private.h
@@ -21,21 +21,13 @@ extern struct _PyGObject_Functions pygobject_api_functions;
#define pyg_threads_enabled (pygobject_api_functions.threads_enabled)
-#ifndef PYGIL_API_IS_BUGGY
-#define pyg_gil_state_ensure() (pygobject_api_functions.threads_enabled? (PyGILState_Ensure()) : 0)
-#define pyg_gil_state_release(state) G_STMT_START { \
- if (pygobject_api_functions.threads_enabled) \
- PyGILState_Release(state); \
- } G_STMT_END
-#else
+
#define pyg_gil_state_ensure() (pygobject_api_functions.threads_enabled? (pygobject_api_functions.gil_state_ensure()) : 0)
#define pyg_gil_state_release(state) G_STMT_START { \
if (pygobject_api_functions.threads_enabled) \
pygobject_api_functions.gil_state_release(state); \
} G_STMT_END
-#endif
-
#define pyg_begin_allow_threads \
G_STMT_START { \
PyThreadState *_save = NULL; \