NEURON
nmodlmutex.h
Go to the documentation of this file.
1
#ifndef nmodlmutex_h
2
#define nmodlmutex_h
3
4
#include <nrnpthread.h>
5
#if USE_PTHREAD
6
#include <pthread.h>
7
extern
pthread_mutex_t* _nmodlmutex;
8
#define _NMODLMUTEXLOCK {if (_nmodlmutex) { pthread_mutex_lock(_nmodlmutex); }}
9
#define _NMODLMUTEXUNLOCK {if (_nmodlmutex) { pthread_mutex_unlock(_nmodlmutex); }}
10
#else
11
#define _NMODLMUTEXLOCK
/**/
12
#define _NMODLMUTEXUNLOCK
/**/
13
#endif
14
15
#endif
src
nrnoc
nmodlmutex.h