Пример #1
0
        public static void Go()
        {
            Thread t = new Thread(LookAtValue);
            t.IsBackground = true;
            t.Start();

            for (ulong i = 0; i < ulong.MaxValue; ++i)
            {
                s_value = new SolidStruct(i);
            }
        }
Пример #2
0
        public static void Go()
        {
            Thread t = new Thread(LookAtValue);

            t.IsBackground = true;
            t.Start();

            for (ulong i = 0; i < ulong.MaxValue; ++i)
            {
                s_value = new SolidStruct(i);
            }
        }
Пример #3
0
        static void LookAtValue()
        {
            while (true)
            {
                SolidStruct value = s_value;
                if (value.A != value.B || value.B != value.C ||
                    value.C != value.D)
                {
                    Console.WriteLine(value);
                }

                Console.ReadLine();
            }
        }