1 /*
2   This file is part of CDO. CDO is a collection of Operators to manipulate and analyse Climate model Data.
3 
4   Author: Uwe Schulzweida
5 
6 */
7 #ifndef PTHREAD_DEBUG_H
8 #define PTHREAD_DEBUG_H
9 
10 void print_pthread_attr(const char *caller, pthread_attr_t *attr);
11 
12 int Pthread_create(const char *caller, pthread_t *th, pthread_attr_t *attr, void *(*start_routine)(void *), void *arg);
13 int Pthread_join(const char *caller, pthread_t th, void **thread_return);
14 
15 #define pthread_create(a, b, c, d) Pthread_create(__func__, a, b, c, d)
16 #define pthread_join(a, b) Pthread_join(__func__, a, b)
17 
18 #endif /* PTHREAD_DEBUG_H */
19