18 #ifndef _DECAF_INTERNAL_UTIL_CONCURRENT_THREADING_H_ 19 #define _DECAF_INTERNAL_UTIL_CONCURRENT_THREADING_H_ 28 namespace concurrent {
32 class ThreadLocalImpl;
50 static void initialize();
57 static void shutdown();
63 static void lockThreadsLib();
68 static void unlockThreadsLib();
73 static void dumpRunningThreads();
84 static MonitorHandle* takeMonitor(
bool alreadyLocked =
false);
94 static void returnMonitor(
MonitorHandle* monitor,
bool alreadyLocked =
false);
151 static bool waitOnMonitor(
MonitorHandle* monitor,
long long mills,
int nanos);
202 long long stackSize);
230 static bool join(
ThreadHandle* thread,
long long mills,
int nanos);
233 static bool interrupted();
234 static bool isInterrupted(
ThreadHandle* thread,
bool reset);
237 static bool sleep(
long long mills,
int nanos);
243 static void setThreadPriority(
ThreadHandle* thread,
int priority);
247 static void setThreadName(
ThreadHandle* thread,
const char* name);
275 static Thread* getCurrentThread();
290 static void park(
Thread* thread);
304 static bool park(
Thread* thread,
long long mills,
int nanos);
314 static void unpark(
Thread* thread);
331 static void* getThreadLocalValue(
int slot);
333 static void setThreadLocalValue(
int slot,
void* value);
335 static void destoryThreadLocalSlot(
int slot);
Definition: ThreadingTypes.h:95
Definition: ThreadLocalImpl.h:28
A Thread is a concurrent unit of execution.
Definition: Thread.h:64
#define DECAF_API
Definition: Config.h:29
Definition: Threading.h:36
State
Represents the various states that the Thread can be in during its lifetime.
Definition: Thread.h:84
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25
Definition: ThreadingTypes.h:62