/usr/include/nrn/nmodlmutex.h is in neuron-dev 7.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #ifndef nmodlmutex_h
#define nmodlmutex_h
#include <nrnpthread.h>
#if USE_PTHREAD
#include <pthread.h>
extern pthread_mutex_t* _nmodlmutex;
#define _NMODLMUTEXLOCK {if (_nmodlmutex) { pthread_mutex_lock(_nmodlmutex); }}
#define _NMODLMUTEXUNLOCK {if (_nmodlmutex) { pthread_mutex_unlock(_nmodlmutex); }}
#else
#define _NMODLMUTEXLOCK /**/
#define _NMODLMUTEXUNLOCK /**/
#endif
#endif
|