Have attributes for mutex, rwlock and cond like in pthread.
[npth.git] / tests / t-mutex.c
1 #include <npth.h>
2
3 int
4 main (int argc, char *argv[])
5 {
6   npth_mutex_t mutex;
7   npth_init ();
8   
9   npth_mutex_init (&mutex, NULL);
10   npth_mutex_lock (&mutex);
11   npth_mutex_unlock (&mutex);
12 }
13