mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 05:18:01 +02:00
Make NO_MUTEX really mean no mutexes
This commit is contained in:
parent
ffc16c4be2
commit
e3c16e15e3
1 changed files with 3 additions and 3 deletions
|
|
@ -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 /*******************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue