summaryrefslogtreecommitdiff
path: root/src/cairo-mutex.c
diff options
context:
space:
mode:
authorMathias Hasselmann <mathias.hasselmann@gmx.de>2007-04-19 13:13:42 +0200
committerMathias Hasselmann <mathias.hasselmann@gmx.de>2007-04-19 13:38:26 +0200
commit9b348929b51fb45f5985914350a10955d6df17ae (patch)
tree91c265b8591464392c3d9aef6893a170b5293207 /src/cairo-mutex.c
parent67767afa09e3622988b9ac67b754114ea9f84105 (diff)
Introduce CAIRO_MUTEX_FINALIZE as counter-part for CAIRO_MUTEX_INITIALIZE
Diffstat (limited to 'src/cairo-mutex.c')
-rw-r--r--src/cairo-mutex.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cairo-mutex.c b/src/cairo-mutex.c
index 1dc9c933..03b08e5d 100644
--- a/src/cairo-mutex.c
+++ b/src/cairo-mutex.c
@@ -52,4 +52,16 @@ void _cairo_mutex_initialize (void)
#undef CAIRO_MUTEX_DECLARE
}
+void _cairo_mutex_finalize (void)
+{
+ if (!_cairo_mutex_initialized)
+ return;
+
+ _cairo_mutex_initialized = FALSE;
+
+#define CAIRO_MUTEX_DECLARE(mutex) CAIRO_MUTEX_FINI (mutex)
+#include "cairo-mutex-list-private.h"
+#undef CAIRO_MUTEX_DECLARE
+}
+
#endif