2 * Copyright 2009, 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_key_create
,
12 (pthread_key_t
*key
, void (*destructorFunc
)(void*)),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_key_create(key
, destructorFunc
));
17 WRAPPER_FUNCTION(int, pthread_key_delete
, (pthread_key_t key
),
18 return B_TO_POSITIVE_ERROR(sReal_pthread_key_delete(key
));
22 WRAPPER_FUNCTION(int, pthread_setspecific
,
23 (pthread_key_t key
, const void *value
),
24 return B_TO_POSITIVE_ERROR(sReal_pthread_setspecific(key
, value
));