init lserp cs 5.0

This commit is contained in:
cyf
2026-07-10 15:25:05 +08:00
commit 90f3fda86a
3799 changed files with 976868 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Collections;
namespace CommonLib
{
/// <summary>
/// 线程执行的函数代理
/// </summary>
public delegate void ThreadFun();
/// <summary>
/// 线程处理类
/// </summary>
public abstract class ThreadHelper
{
private static Thread hThread;
protected ThreadHelper()
{
}
/// <summary>
/// 指定一个函数代理让线程执行
/// </summary>
/// <param name="fun"></param>
public static void AddProcedure(ThreadFun fun)
{
hThread = new Thread(new ThreadStart(fun));
//hThread.IsBackground = true;
hThread.Start();
}
}
}