WakeUp() public static method

public static WakeUp ( MicroThread thread ) : void
thread MicroThread
return void
        public void WakeUp()
        {
            if (m_state == MicroThreadState.Scheduled)
            {
                // thread has already been woken up
                return;
            }

            if (m_state != MicroThreadState.Waiting)
            {
                throw new Exception(String.Format("Illegal thread state in WakeUp(): {0}", m_state));
            }

            Scheduler.WakeUp(this);
        }