推 xcycl:callback 或 delegate 啊 ... 09/26 16:38
各位先進好:
弟對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