作者horngsh (要公理要正义)
看板C_Sharp
标题[问题] about multi-thread
时间Wed Sep 26 16:33:45 2007
各位先进好:
弟对THREAD有些不解的地方,盼望有能人可以为我解惑, 感恩!
文述如下:
You might wish to kill a thread in reaction to an event,
such as the user clicking the Cancel button.
The event handler for the Cancel button might be in thread
t1, and the event it is canceling might be in thread t2.
In your event handler, you can call Abort on t1:
t1.Abort();
An exception will be raised in t1's currently running method
that t1 can catch.
我的疑问是当T1中的事件程序正在执行时, T2 thread如何得知并呼叫
t1.Abort()以中止发生EVENT的THREAD(T1)....
感恩您
--
=============================
夏有凉风
冬有雪
http://itsoho.myweb.hinet.net
=============================
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.126.181.10
1F:推 xcycl:callback 或 delegate 啊 ... 09/26 16:38