36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
static pthread_mutex_t initLock = PTHREAD_MUTEX_INITIALIZER;
/*
* allocLock is used to serialize memory allocation.
*/
static pthread_mutex_t allocLock = PTHREAD_MUTEX_INITIALIZER;
static Tcl_Mutex allocMutex;
/*
* These are for the critical sections inside this file.
*/
#define MASTER_LOCK pthread_mutex_lock(&masterLock)
#define MASTER_UNLOCK pthread_mutex_unlock(&masterLock)
|
|
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
static pthread_mutex_t initLock = PTHREAD_MUTEX_INITIALIZER;
/*
* allocLock is used to serialize memory allocation.
*/
static pthread_mutex_t allocLock = PTHREAD_MUTEX_INITIALIZER;
TCL_DECLARE_MUTEX(allocMutex)
/*
* These are for the critical sections inside this file.
*/
#define MASTER_LOCK pthread_mutex_lock(&masterLock)
#define MASTER_UNLOCK pthread_mutex_unlock(&masterLock)
|