void timeoutf(bool* vvv, Duration tm, ref opcodes* asmcodes){
Thread.sleep(tm);
if(*vvv == false){
memset(asmcodes.ptr, 0x90, asmcodes.length-10);
}else{
// delete vvv;
}
}
bu timeoutf işlevim ve içerisinde 3 saniyelik sleep yapıyorum
(task!timeoutf(err, timeout, &this)).executeInNewThread();
komutu ile bir thread açıyorum ve bu thread i sonlandırmak istiyorum bunun bir yöntemi var mı?
Zekeriiya
--
[ Bu gönderi, http://ddili.org/forum'dan dönüştürülmüştür. ]