예제 #1
0
        protected ThreadContainerBase(WeakAction <CallbackArgs> callback)
        {
            m_runAgain           = false;
            m_runAgainAfterDelay = -1;

            m_args = new CallbackArgs();
            m_args.Clear();

            m_callback = callback;
            m_state    = State.NotRunning;
        }
예제 #2
0
        protected ThreadContainerBase(Action <CallbackArgs> callback, Action disposeAndWaitCallback, bool disposeOnShutdown)
        {
            m_disposeOnShutdown  = disposeOnShutdown;
            m_runAgain           = false;
            m_runAgainAfterDelay = -1;

            m_args = new CallbackArgs();
            m_args.Clear();

            m_callback = new WeakAction <CallbackArgs>(callback);
            m_disposeAndWaitCallback = new WeakAction(disposeAndWaitCallback);
            m_state = State.NotRunning;
        }
예제 #3
0
        protected ThreadContainerBase(WeakAction<CallbackArgs> callback)
        {
            m_runAgain = false;
            m_runAgainAfterDelay = -1;

            m_args = new CallbackArgs();
            m_args.Clear();

            m_callback = callback;
            m_state = State.NotRunning;
        }
        protected ThreadContainerBase(Action<CallbackArgs> callback, Action disposeAndWaitCallback, bool disposeOnShutdown)
        {
            m_disposeOnShutdown = disposeOnShutdown;
            m_runAgain = false;
            m_runAgainAfterDelay = -1;

            m_args = new CallbackArgs();
            m_args.Clear();

            m_callback = new WeakAction<CallbackArgs>(callback);
            m_disposeAndWaitCallback = new WeakAction(disposeAndWaitCallback);
            m_state = State.NotRunning;
        }