Permalink
Browse files

Updated for Linux

  • Loading branch information...
1 parent 5234155 commit 338b6882a291601c6f90eb7124df86e28c3dc6b4 @sanketr committed Feb 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test.c
View
2 test.c
@@ -16,7 +16,7 @@ void initThreads(int nThreads, FnPtr* fns)
//create mutexes for each thread
gLock = (pthread_mutex_t*) malloc (gThreads * sizeof(pthread_mutex_t));
pthread_mutexattr_t mutexAttr;
- pthread_mutexattr_settype(&mutexAttr,PTHREAD_MUTEX_NORMAL);
+ pthread_mutexattr_settype(&mutexAttr,NULL);
int i;
//initialize the mutexes
for(i=0;i<gThreads;i++){

0 comments on commit 338b688

Please sign in to comment.