Ypsilon.Emulation.Processor.YCPU.Pause C# (CSharp) Method

Pause() public method

Pauses a currently executing YCPU.
public Pause ( ) : void
return void
        public void Pause()
        {
            if (!Running)
                return;
            m_Pausing = true;
            while (m_Pausing) {
                // wait until the cpu has stopped running, then return.
                // we wait 1ms between each try so we don't lock this variable.
                Thread.Sleep(1);
            }
        }