public static void AddExecution(Delegate del, params object[] args) { var newDel = new SoketinDelegate() { del = del, arg = args }; AddExecution(newDel); }
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); }
internal static void AddExecution(SoketinDelegate del) { Monitor.Enter(m_queue); try { m_queue.Enqueue(del); } catch { } finally { Monitor.Exit(m_queue); } }