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 cputime();
191 static FXTime ticks();
196 static void sleep(FXTime nsec);
201 static void wakeat(FXTime nsec);
213 static FXThreadID current();
218 static FXint processors();
224 static FXint processor();
229 static FXThreadStorageKey createStorageKey();
234 static void deleteStorageKey(FXThreadStorageKey key);
239 static void* getStorage(FXThreadStorageKey key);
244 static void setStorage(FXThreadStorageKey key,
void* ptr);
249 FXbool priority(Priority prio);
254 Priority priority()
const;
259 FXbool policy(Policy plcy);
264 Policy policy()
const;
270 FXbool affinity(FXulong mask);
275 FXulong affinity()
const;
280 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