Make NO_MUTEX really mean no mutexes

This commit is contained in:
Vladimir Vukicevic 2007-08-29 16:30:49 -07:00
parent ffc16c4be2
commit e3c16e15e3

View file

@ -141,13 +141,13 @@ CAIRO_BEGIN_DECLS
#if CAIRO_NO_MUTEX
/* A poor man's mutex */
/* No mutexes */
typedef int cairo_mutex_t;
# define CAIRO_MUTEX_INITIALIZE() CAIRO_MUTEX_NOOP
# define CAIRO_MUTEX_LOCK(mutex) do { while (mutex) ; (mutex) = 1; } while (0)
# define CAIRO_MUTEX_UNLOCK(mutex) (mutex) = 0
# define CAIRO_MUTEX_LOCK(mutex) CAIRO_MUTEX_NOOP1(mutex)
# define CAIRO_MUTEX_UNLOCK(mutex) CAIRO_MUTEX_NOOP1(mutex)
# define CAIRO_MUTEX_NIL_INITIALIZER 0
#elif HAVE_PTHREAD_H /*******************************************************/