15 namespace current {
namespace platform
17 inline void yield() { SwitchToThread(); }
18 inline void pause() { YieldProcessor(); }
27 typedef thread::platform::LocalStore LocalStore;
28 friend struct LocalStore;
30 Thread(
bool external,
int stackSize);
34 Thread& operator=(Thread&& rhs);
36 static Thread& current();
41 static const int priorityNormal = 0;
42 static const int priorityMin = -2;
43 static const int priorityMax = 2;
44 void setPriority(
int priority);
45 int getPriority()
const;
47 typedef int32 ThreadId;
48 static const ThreadId threadIdInvalid = 0;
49 ThreadId threadId()
const {
return _id; }
51 static int concurrency() {
static int ret = concurrency_priv();
return ret; }
56 static Thread* createExt();
57 static DWORD WINAPI entry(
void* arg);
58 static int concurrency_priv();
void yield()
Give up this thread's time slice to allow other threads to execute.
Definition: Thread.h:52
void pause()
Perform a no-op without giving up this thread's time slice. This no-op momentarily frees resources fo...
Definition: Thread.h:54
int int32
Definition: Core.h:15
Global Honeycomb namespace.