bool use_sleeping_threads() const { return useSleepingThreads; }
int min_split_depth() const { return minimumSplitDepth; }
int size() const { return (int)threads.size(); }
- Thread* main_thread() const { return threads[0]; }
- Thread* this_thread() const { return (Thread*)tls_get(tlsKey); }
- void set_this_thread(Thread* th) const { tls_set(tlsKey, th); }
+ Thread* main_thread() { return threads[0]; }
void wake_up() const;
void sleep() const;
std::vector<Thread*> threads;
Thread* timer;
- ThreadLocalStorageKey tlsKey;
Lock splitLock;
WaitCondition sleepCond;
Depth minimumSplitDepth;