diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-05-01 19:48:33 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-05-01 19:48:33 -0400 |
commit | 5bfd6553fd028f1429d72c60d04788de4a3c0d58 (patch) | |
tree | 35638cea8978727f28022f820eb6ee3c52986742 /src/cairo-mutex-type-private.h | |
parent | c4e0a059feb9c2e0c32966dcb168861e75a244b7 (diff) | |
download | cairo-5bfd6553fd028f1429d72c60d04788de4a3c0d58.tar.gz |
[cairo-mutex] Define a NOOP CAIRO_MUTEX_FINALIZE() for pthread
as now the mutex layer will define a generic CAIRO_MUTEX_FINALIZE()
whenever the implementation defines CAIRO_MUTEX_FINI(). In the
case of pthread however we don't need finalization as we don't
have any place to call it, and pthread_mutex_destroy() doesn't
do much anyway.
Diffstat (limited to 'src/cairo-mutex-type-private.h')
-rw-r--r-- | src/cairo-mutex-type-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-mutex-type-private.h b/src/cairo-mutex-type-private.h index 111c0bd57..2ab1d37f9 100644 --- a/src/cairo-mutex-type-private.h +++ b/src/cairo-mutex-type-private.h @@ -76,6 +76,7 @@ CAIRO_BEGIN_DECLS # define CAIRO_MUTEX_LOCK(mutex) pthread_mutex_lock (&(mutex)) # define CAIRO_MUTEX_UNLOCK(mutex) pthread_mutex_unlock (&(mutex)) # define CAIRO_MUTEX_FINI(mutex) pthread_mutex_destroy (&(mutex)) +# define CAIRO_MUTEX_FINALIZE() CAIRO_MUTEX_NOOP # define CAIRO_MUTEX_NIL_INITIALIZER PTHREAD_MUTEX_INITIALIZER #elif HAVE_WINDOWS_H /*******************************************************/ |