コード例 #1
0
            public void method_0()
            {
                while (true)
                {
                    if (World.jlMsg == 1)
                    {
                        Form1.WriteLine(0, "TimerMain");
                    }
                    Thread.Sleep(10);
                    smethod_5();
                    for (int i = 0; i < list_0.Length; i++)
                    {
                        DateTime now = DateTime.Now;
                        if (now < dateTime_0[i])
                        {
                            break;
                        }
                        dateTime_0[i] = now + timeSpan_0[i];
                        for (int j = 0; j < list_0[i].Count; j++)
                        {
                            TimerClass item = list_0[i][j];
                            if (item.bool_1 || (now <= item.dateTime_0))
                            {
                                continue;
                            }
                            item.bool_1 = true;
                            Queue <TimerClass> queue = TimerClass.queue_0;
                            lock (queue)
                            {
                                TimerClass.queue_0.Enqueue(item);
                                if (item.int_1 == 0)
                                {
                                    goto Label_00DE;
                                }
                            }
                            int num3 = item.int_0 + 1;
                            item.int_0 = num3;
                            if (num3 >= item.int_1)
                            {
                                item.method_2();
                                continue;
                            }
Label_00DE:
                            item.dateTime_0 = now + item.timeSpan_1;
                        }
                    }
                }
            }
コード例 #2
0
 public static TimerClass.Class128.Class129 smethod_0(TimerClass class125_1, int int_1, bool bool_1)
 {
     if (queue_0.Count <= 0)
     {
         return(new TimerClass.Class128.Class129(class125_1, int_1, bool_1));
     }
     TimerClass.Class128.Class129 class2 = queue_0.Dequeue();
     if (class2 == null)
     {
         return(new TimerClass.Class128.Class129(class125_1, int_1, bool_1));
     }
     class2.class125_0 = class125_1;
     class2.int_0      = int_1;
     class2.bool_0     = bool_1;
     return(class2);
 }
コード例 #3
0
        public static void Slice()
        {
            Queue <TimerClass> queue = queue_0;

            lock (queue)
            {
                int_3 = queue_0.Count;
                int       num       = 0;
                Stopwatch stopwatch = null;
                while (num < int_2)
                {
                    if (queue_0.Count == 0)
                    {
                        break;
                    }
                    if (World.jlMsg == 1)
                    {
                        Form1.WriteLine(0, "Slice");
                    }
                    TimerClass   local1  = queue_0.Dequeue();
                    TimerProfile profile = local1.method_0();
                    if (profile != null)
                    {
                        if (stopwatch == null)
                        {
                            stopwatch = Stopwatch.StartNew();
                        }
                        else
                        {
                            stopwatch.Start();
                        }
                    }
                    local1.vmethod_1();
                    local1.bool_1 = false;
                    num++;
                    if (profile != null)
                    {
                        profile.method_3(stopwatch.Elapsed);
                        stopwatch.Reset();
                    }
                }
            }
        }
コード例 #4
0
 private Class129(TimerClass t, int newIndex, bool isAdd)
 {
     this.class125_0 = t;
     this.int_0      = newIndex;
     this.bool_0     = isAdd;
 }
コード例 #5
0
 public static void smethod_4(TimerClass class125_0)
 {
     smethod_1(class125_0, -1, false);
 }
コード例 #6
0
 public static void smethod_3(TimerClass class125_0, int int_0)
 {
     smethod_1(class125_0, int_0, false);
 }
コード例 #7
0
 public static void smethod_2(TimerClass class125_0)
 {
     smethod_1(class125_0, (int)class125_0.Priority, true);
 }
コード例 #8
0
 public static void smethod_1(TimerClass class125_0, int int_0, bool bool_0)
 {
     queue_0.Enqueue(Class129.smethod_0(class125_0, int_0, bool_0));
 }
コード例 #9
0
 public override string ToString() =>
 $"DelayStateCall[{TimerClass.smethod_0(this.delegate11_0)}]";
コード例 #10
0
 public override string ToString() =>
 $"DelayCallTimer[{TimerClass.smethod_0(this.delegate10_0)}]";