如何使一个线程中的一条支线停止?
rtrtrtrtrtrt 急啊!!
Thread trd = new Thread(new ThreadStart(yourFunc));
private int thistrdId ;
public int MytrdId
{
get{return thistrdId ;}
}
trd.Start();
public void CloseThread()
{
if(Thread.CurrentThread.ManagedThreadId ==trd.MytrdId && trd.IsAlive)
{
trd.Abort();
}
}