internal void EnqueueTask(Action<object> task, object taskInformation) { Interlocked.Increment(ref manager.tasksRemaining); taskData.Enqueue(new TaskEntry(task, taskInformation)); resetEvent.Set(); }