HaikuDepot: notify work status from main window
[haiku.git] / src / libs / posix_error_mapper / pthread_condattr.cpp
blob9d6a827e41d6ed976bfdca5de402afbd2377e324
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
6 #include <pthread.h>
8 #include "posix_error_mapper.h"
11 WRAPPER_FUNCTION(int, pthread_condattr_destroy,
12 (pthread_condattr_t *condAttr),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_destroy(condAttr));
17 WRAPPER_FUNCTION(int, pthread_condattr_init,
18 (pthread_condattr_t *condAttr),
19 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_init(condAttr));
23 WRAPPER_FUNCTION(int, pthread_condattr_getpshared,
24 (const pthread_condattr_t *condAttr, int *processShared),
25 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_getpshared(condAttr,
26 processShared));
30 WRAPPER_FUNCTION(int, pthread_condattr_setpshared,
31 (pthread_condattr_t *condAttr, int processShared),
32 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_setpshared(condAttr,
33 processShared));
37 WRAPPER_FUNCTION(int, pthread_condattr_getclock,
38 (const pthread_condattr_t *condAttr, clockid_t *clockID),
39 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_getclock(condAttr,
40 clockID));
44 WRAPPER_FUNCTION(int, pthread_condattr_setclock,
45 (pthread_condattr_t *condAttr, clockid_t clockID),
46 return B_TO_POSITIVE_ERROR(sReal_pthread_condattr_setclock(condAttr,
47 clockID));