Revision 2f7bb878 linux-user/main.c
b/linux-user/main.c | ||
---|---|---|
108 | 108 |
|
109 | 109 |
#endif |
110 | 110 |
|
111 |
#if defined(USE_NPTL) |
|
111 |
#if defined(CONFIG_USE_NPTL)
|
|
112 | 112 |
/***********************************************************/ |
113 | 113 |
/* Helper routines for implementing atomic operations. */ |
114 | 114 |
|
... | ... | |
222 | 222 |
{ |
223 | 223 |
pthread_mutex_unlock(&cpu_list_mutex); |
224 | 224 |
} |
225 |
#else /* if !USE_NPTL */ |
|
225 |
#else /* if !CONFIG_USE_NPTL */
|
|
226 | 226 |
/* These are no-ops because we are not threadsafe. */ |
227 | 227 |
static inline void cpu_exec_start(CPUState *env) |
228 | 228 |
{ |
... | ... | |
2357 | 2357 |
void task_settid(TaskState *ts) |
2358 | 2358 |
{ |
2359 | 2359 |
if (ts->ts_tid == 0) { |
2360 |
#ifdef USE_NPTL |
|
2360 |
#ifdef CONFIG_USE_NPTL
|
|
2361 | 2361 |
ts->ts_tid = (pid_t)syscall(SYS_gettid); |
2362 | 2362 |
#else |
2363 | 2363 |
/* when no threads are used, tid becomes pid */ |
Also available in: Unified diff