diff options
author | Max Kellermann <max@duempel.org> | 2013-01-07 10:49:21 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-07 10:49:21 +0100 |
commit | a6ee6be9602f64599b40e01321bd771b17d94f39 (patch) | |
tree | dacbac3a4c088fa9621dae49db0a49ffb847b885 /src/TagPool.cxx | |
parent | 47911f9544ecd3b028cc044b400536234b17949a (diff) |
TagPool: use the Mutex class instead of GStaticMutex
Diffstat (limited to 'src/TagPool.cxx')
-rw-r--r-- | src/TagPool.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/TagPool.cxx b/src/TagPool.cxx index ce715a15..f529cda6 100644 --- a/src/TagPool.cxx +++ b/src/TagPool.cxx @@ -22,17 +22,7 @@ #include <assert.h> -#if GCC_CHECK_VERSION(4, 2) -/* workaround for a warning caused by G_STATIC_MUTEX_INIT */ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmissing-field-initializers" -#endif - -GStaticMutex tag_pool_lock = G_STATIC_MUTEX_INIT; - -#if GCC_CHECK_VERSION(4, 2) -#pragma GCC diagnostic pop -#endif +Mutex tag_pool_lock; #define NUM_SLOTS 4096 |