BEPUphysics.Threading.ThreadTaskManager.EnqueueTaskSequentially C# (CSharp) Метод

EnqueueTaskSequentially() публичный Метод

Enqueues a task. This method also does not perform any locking; it should only be called when all worker threads of the thread pool are idle and all calls to this method are from the same thread.
public EnqueueTaskSequentially ( Action task, object taskInformation ) : void
task Action Task to enqueue.
taskInformation object Information for the task.
Результат void
        public void EnqueueTaskSequentially(Action<object> task, object taskInformation)
        {
            //enqueueTask(task, taskInformation);
            workers[currentTaskAllocationIndex].EnqueueTask(task, taskInformation);
            currentTaskAllocationIndex = (currentTaskAllocationIndex + 1) % workers.Count;
            //workers[currentTaskAllocationIndex].enqueueTaskSequentially(task, taskInformation);
            //currentTaskAllocationIndex = (currentTaskAllocationIndex + 1) % workers.Count;
        }