25 #include "FXRunnable.h" 62 volatile FXThreadID tid;
94 static unsigned int CALLBACK
function(
void*);
96 static void*
function(
void*);
108 FXThreadID id()
const;
113 FXbool running()
const;
122 FXbool start(FXuval stacksize=0);
136 FXbool join(FXint& code);
161 static void exit(FXint code=0);
176 static FXTime time();
181 static FXTime steadytime();
186 static FXTime ticks();
191 static void sleep(FXTime nsec);
196 static void wakeat(FXTime nsec);
208 static FXThreadID current();
213 static FXint processors();
219 static FXint processor();
224 static FXThreadStorageKey createStorageKey();
229 static void deleteStorageKey(FXThreadStorageKey key);
234 static void* getStorage(FXThreadStorageKey key);
239 static void setStorage(FXThreadStorageKey key,
void* ptr);
244 FXbool priority(Priority prio);
249 Priority priority()
const;
254 FXbool policy(Policy plcy);
259 Policy policy()
const;
265 FXbool affinity(FXulong mask);
270 FXulong affinity()
const;
275 FXbool description(
const FXString& desc);
Minimum scheduling priority.
Definition: FXThread.h:71
Medium priority.
Definition: FXThread.h:73
Default scheduling.
Definition: FXThread.h:81
Priority
Thread priority levels.
Definition: FXThread.h:67
FXThread provides system-independent support for threads.
Definition: FXThread.h:60
Policy
Thread scheduling policies.
Definition: FXThread.h:78
Default scheduling priority.
Definition: FXThread.h:70
Definition: FX4Splitter.h:28
Failed to get priority.
Definition: FXThread.h:69
Failed to get policy.
Definition: FXThread.h:80
Automatically generated thread-local storage key.
Definition: FXAutoThreadStorageKey.h:40
Lower scheduling priority.
Definition: FXThread.h:72
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42
FXRunnable represents a generic runnable thing.
Definition: FXRunnable.h:33