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

                interrupted = InternalThread.IsAlive;
                myLock.Unlock();
            }
コード例 #2
0
            private void Run()
            {
                using (_myLock.Lock())
                {
                    LockStarted = true;

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