]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/gcclibs/libgomp/config/posix95/omp-lock.h
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / contrib / gcclibs / libgomp / config / posix95 / omp-lock.h
1 /* This header is used during the build process to find the size and 
2    alignment of the public OpenMP locks, so that we can export data
3    structures without polluting the namespace.
4
5    In this POSIX95 implementation, we map the two locks to the
6    same PTHREADS primitive.  */
7
8 #include <pthread.h>
9
10 typedef pthread_mutex_t omp_lock_t;
11
12 typedef struct
13 {
14   pthread_mutex_t lock;
15   pthread_t owner;
16   int count;
17 } omp_nest_lock_t;