aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem_pool.h')
-rw-r--r--src/mem_pool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mem_pool.h b/src/mem_pool.h
index 62f6dcb9a..475a00629 100644
--- a/src/mem_pool.h
+++ b/src/mem_pool.h
@@ -76,6 +76,11 @@ typedef struct memory_pool_s {
struct _pool_chain_shared *shared_pool; /**< shared chain */
struct _pool_destructors *destructors; /**< destructors chain */
GHashTable *variables; /**< private memory pool variables */
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION <= 30))
+ GStaticMutex mtx; /**< threads lock */
+#else
+ GMutex mtx; /**< threads lock */
+#endif
} memory_pool_t;
/**