if (this.Thread_1 != null)
{
if (Thread_1.ThreadState == ThreadState.Running)
{
try
{
Thread_1.Abort();
}
catch
{ }
}
if (Thread_1.ThreadState == ThreadState.Suspended)
{
try
{
Thread_1.Abort();
}
catch
{ }
}
}
c#保证线程开启的唯一性
未经允许不得转载:爱站程序员基地 » c#保证线程开启的唯一性