2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
8 #include "posix_error_mapper.h"
11 WRAPPER_FUNCTION(int, pthread_spin_init
,
12 (pthread_spinlock_t
* lock
, int pshared
),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_spin_init(lock
, pshared
));
17 WRAPPER_FUNCTION(int, pthread_spin_destroy
, (pthread_spinlock_t
* lock
),
18 return B_TO_POSITIVE_ERROR(sReal_pthread_spin_destroy(lock
));
22 WRAPPER_FUNCTION(int, pthread_spin_lock
, (pthread_spinlock_t
* lock
),
23 return B_TO_POSITIVE_ERROR(sReal_pthread_spin_lock(lock
));
27 WRAPPER_FUNCTION(int, pthread_spin_trylock
, (pthread_spinlock_t
* lock
),
28 return B_TO_POSITIVE_ERROR(sReal_pthread_spin_trylock(lock
));
32 WRAPPER_FUNCTION(int, pthread_spin_unlock
, (pthread_spinlock_t
* lock
),
33 return B_TO_POSITIVE_ERROR(sReal_pthread_spin_unlock(lock
));