/// <summary> /// Queues the specified run callback. /// </summary> /// <param name="runCallback">The run callback.</param> /// <param name="obj">The obj.</param> public void Queue(ThreadPoolRunDelegate runCallback, object obj) { Queue <object> (runCallback, obj); }
/// <summary> /// Queues the specified run callback. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="runCallback">The run callback.</param> /// <param name="arg">The arg.</param> public void Queue <T> (ThreadPoolRunDelegate runCallback, T arg) { this.Threads.Enqueue(runCallback); this.Arguments.Enqueue(arg); }
/// <summary> /// Queues the specified run callback. /// </summary> /// <param name="runCallback">The run callback.</param> public void Queue(ThreadPoolRunDelegate runCallback) { Queue(runCallback, new object( )); }