HaikuDepot: notify work status from main window
[haiku.git] / src / libs / posix_error_mapper / pthread_misc.cpp
blobd0b915dd5f3b1a2a0603a73bbc1ffaf772968499
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_atfork,
12 (void (*prepare)(void), void (*parent)(void), void (*child)(void)),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_atfork(prepare, parent, child));
17 WRAPPER_FUNCTION(int, pthread_once,
18 (pthread_once_t *once_control, void (*init_routine)(void)),
19 return B_TO_POSITIVE_ERROR(sReal_pthread_once(once_control, init_routine));