Commit 1856df04 authored by Philip Carns's avatar Philip Carns

use recursive mutexes by default to account for system libraries that make

I/O calls unexpected places


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@387 3b7491f3-a168-0410-bf4b-c445ed680a29
parent bf5cf039
......@@ -14,10 +14,11 @@
#include <stdlib.h>
#include <errno.h>
#include <sys/uio.h>
#include <pthread.h>
#include <sys/mman.h>
#include <search.h>
#include <assert.h>
#define __USE_GNU
#include <pthread.h>
#include "darshan.h"
#include "darshan-config.h"
......@@ -99,7 +100,7 @@ DARSHAN_FORWARD_DECL(fseek, int, (FILE *stream, long offset, int whence));
DARSHAN_FORWARD_DECL(fsync, int, (int fd));
DARSHAN_FORWARD_DECL(fdatasync, int, (int fd));
pthread_mutex_t cp_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t cp_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
struct darshan_job_runtime* darshan_global_job = NULL;
static int my_rank = -1;
static struct stat64 cp_stat_buf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment