HaikuDepot: notify work status from main window
[haiku.git] / src / libs / posix_error_mapper / pthread_cond.cpp
blob8220ee2d33c89da8bc05c198c4e48d081368a1d3
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_cond_destroy, (pthread_cond_t *cond),
12 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_destroy(cond));
16 WRAPPER_FUNCTION(int, pthread_cond_init, (pthread_cond_t *cond,
17 const pthread_condattr_t *attr),
18 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_init(cond, attr));
22 WRAPPER_FUNCTION(int, pthread_cond_broadcast, (pthread_cond_t *cond),
23 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_broadcast(cond));
27 WRAPPER_FUNCTION(int, pthread_cond_signal, (pthread_cond_t *cond),
28 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_signal(cond));
32 WRAPPER_FUNCTION(int, pthread_cond_timedwait, (pthread_cond_t *cond,
33 pthread_mutex_t *mutex, const struct timespec *abstime),
34 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_timedwait(cond, mutex,
35 abstime));
39 WRAPPER_FUNCTION(int, pthread_cond_wait, (pthread_cond_t *cond,
40 pthread_mutex_t *mutex),
41 return B_TO_POSITIVE_ERROR(sReal_pthread_cond_wait(cond, mutex));