Condition cond;
cond.create(false); // bManualReset=false ==> auto-reset condition after wait
function MyThreadEntry(local Thread t) {
trace "begin MyThreadEntry";
cond.wait(0);
trace "end MyThreadEntry";
}
Thread t;
t.create(MyThreadEntry);
TKS.sleep(500);
trace "raise condition";
cond.raise();
t.wait();
trace "cu";