Home Help Center

How to cancel a thread?

protossweiprotosswei Member Wei ShengyuOrganization: BaosightProject: iplature
Hi,
Is there any method to kill a specified thread ? Like following:
main()
{
Thread t = new MyThread();
t->start();/* run() maybe lives long time */
/* here, kill above thread */
}

THX! :)
Sign In or Register to comment.