public virtual bool StartThread(string name, FOnThreadTick action) { if (mIsRun) { return(false); } Name = name; mIsRun = true; mIsFinished = false; mThread = new System.Threading.Thread(ThreadMain); mThread.Name = name; TickAction = action; mThread.Start(); return(true); }
public override bool StartThread(string name, FOnThreadTick action) { mLogicBegin.Reset(); mLogicEnd.Reset(); return(base.StartThread(name, action)); }