Evolution/Evolution/Core/MultithreadedCachedExecutor.cs
/// <summary>
/// Adds a task to queue.
/// </summary>
/// <param name="action">The action.</param>
/// <param name="obj">The object.</param>
Adds a task to queue.
Adds a task to queue .
public void AddToQueue(Action<object> action, object obj)
        {
            if (UseMultithreading)
            {
                ThreadPool.QueueUserWorkItem(new WaitCallback(action), obj);
            }
            else
            {
                action(obj);
            }
        }
public void AddToQueue ( Action < object > action , object obj ) { if ( UseMultithreading ) { ThreadPool . QueueUserWorkItem ( new WaitCallback ( action ) , obj ) ; } else { action ( obj ) ; } }
Adds a task to queue.
Adds a task to queue .
action
Action<object>
None
obj
object
None