/// <summary> /// actionDispatch 작업을 DispatchThread에서 실행합니다. /// </summary> /// <param name="actionDispatch">수행할 작업</param> public static void Dispatch(Action actionDispatch) { if (DispatchThreadCount == 0) { AegisTask.Run(actionDispatch); } else { _dispatchThread.Post(actionDispatch); } }
/// <summary> /// actionWork 작업을 WorkerThread에서 실행합니다. /// </summary> /// <param name="actionWork">수행할 작업</param> public static void Work(Action actionWork) { if (WorkerThreadCount == 0) { AegisTask.Run(actionWork); } else { _workerThread.Post(actionWork); } }