1#include <cx/stype/stvar.h>
2#include <cx/container/sarray.h>
3#include <cx/thread/atomic.h>
4#include <cx/thread/event.h>
5#include <cx/thread/threadbase.h>
7[methodprefix _throbj] class Thread {
11 int exitCode; // only valid once 'running' become false
14 [noinit] sarray:stvar _argsa; // should use the stvlist instead where possible
17 atomic:bool requestExit;
18 [noinit] Event notify;
21 factory create(threadFunc func, strref name, int n, stvar args[], bool ui);