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

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

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

            return(YieldingQueue.ApplyWaitMethod2(i));
        }