Post() 공개 메소드

public Post ( System.Action item ) : void
item System.Action
리턴 void
예제 #1
0
        /// <summary>
        /// actionDispatch 작업을 DispatchThread에서 실행합니다.
        /// </summary>
        /// <param name="actionDispatch">수행할 작업</param>
        public static void Dispatch(Action actionDispatch)
        {
            if (DispatchThreadCount == 0)
            {
                AegisTask.Run(actionDispatch);
            }

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

            else
            {
                _workerThread.Post(actionWork);
            }
        }