强行结束Thread

System.Threading.Thread thread;

public void Dispose()
{
if (thread.ThreadState == ThreadState.Running) {
thread.Abort();
}
}

posted @ 2021-02-23 14:36  月下独酌孤醉  阅读(64)  评论(0)    收藏  举报