예제 #1
0
        public static void AddExecution(Delegate del, params object[] args)
        {
            var newDel = new SoketinDelegate()
            {
                del = del, arg = args
            };

            AddExecution(newDel);
        }
예제 #2
0
        public static void Execute()
        {
            Monitor.Enter(m_queue);
            SoketinDelegate delC = null;

            try { delC = m_queue.Dequeue(); } catch { }
            finally { Monitor.Exit(m_queue); }
            delC.del?.DynamicInvoke(delC.arg);
        }
예제 #3
0
 internal static void AddExecution(SoketinDelegate del)
 {
     Monitor.Enter(m_queue);
     try {
         m_queue.Enqueue(del);
     }
     catch { }
     finally {
         Monitor.Exit(m_queue);
     }
 }