Exemple #1
0
        public int Ref()
        {
            int i = 1;

            YieldingQueue.ApplyWaitMethod(ref i);
            return(i);
        }
Exemple #2
0
        public void DecrementRef()
        {
            int count = 100;

            for (int i = 0; i < 100; i++)
            {
                YieldingQueue.ApplyWaitMethod(ref count);
            }
            Assert.AreEqual(0, count);
        }
Exemple #3
0
        public int NoRef()
        {
            int i = 1;

            return(YieldingQueue.ApplyWaitMethod2(i));
        }