예제 #1
0
 public bool Equals(ThreadPoolState other)
 {
     if (MinWorkerThreads == other.MinWorkerThreads && UsedWorkerThreads == other.UsedWorkerThreads && MinIocpThreads == other.MinIocpThreads)
     {
         return(UsedIocpThreads == other.UsedIocpThreads);
     }
     return(false);
 }
 public LoadTableThread(string tableFolder = "Assets/Tables/", string tableExtension = ".txt", string name = "default table loader")
 {
     if (tableFolder.EndsWith("/"))
     {
         mTableFolder = tableFolder;
     }
     else
     {
         mTableFolder = StringUtil.Concat(tableFolder, "/");
     }
     if (tableExtension.StartsWith(".") || string.IsNullOrEmpty(tableExtension))
     {
         mTableExtension = tableExtension;
     }
     else
     {
         mTableExtension = StringUtil.Concat(".", tableExtension);
     }
     mThreadState      = new ThreadPoolState();
     mThreadState.name = name;
 }