temu客户端程序
This commit is contained in:
commit
4aaf264e89
694 files changed
+263780
No files matched your search
@@ -0,0 +1,49 @@
|
||||
|
||||
using System;
|
||||
using System.Threading;
|
||||
|
||||
namespace AllBase
|
||||
{
|
||||
public class ThreadTime
|
||||
{
|
||||
public Thread t;
|
||||
public DateTime StartTime;
|
||||
public bool IsAlive
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
return (t == null ? false : t.IsAlive);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public ThreadTime(Thread _t)
|
||||
{
|
||||
t = _t;
|
||||
}
|
||||
public void Start()
|
||||
{
|
||||
t.Priority = ThreadPriority.BelowNormal;
|
||||
t.Start();
|
||||
StartTime = DateTime.Now;
|
||||
}
|
||||
public void Abort()
|
||||
{
|
||||
try
|
||||
{
|
||||
if(t.IsAlive)
|
||||
t.Abort();
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user