예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <summary>
 /// Queues the specified run callback.
 /// </summary>
 /// <param name="runCallback">The run callback.</param>
 public void Queue(ThreadPoolRunDelegate runCallback)
 {
     Queue(runCallback, new object( ));
 }