Exemple #1
0
            public void Run()
            {
                myLock.Lock();
                lockStarted = true;
                while (!canAwake)
                {
                    c.AwaitUninterruptibly();
                }

                interrupted = InternalThread.IsAlive;
                myLock.Unlock();
            }
            private void Run()
            {
                using (_myLock.Lock())
                {
                    LockStarted = true;

                    while (!CanAwake)
                    {
                        _condition.AwaitUninterruptibly();
                    }
                    Interrupted = TestThreadManager.IsCurrentThreadInterrupted();
                }
            }