Urho.WorkQueue Class

Work queue subsystem for multithreading.

See Also: WorkQueue


public class WorkQueue : UrhoObject


Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions:

The members of Urho.WorkQueue are listed below.

See Also: UrhoObject

Public Constructors

Constructs a new instance of Urho.WorkQueue which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.WorkQueue, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.WorkQueue linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

CompletingBoolean. Return whether the queue is currently completing work in the main thread.
FreeItemWorkItem. Get pointer to an usable WorkItem from the item pool. Allocate one if no more free items.
NonThreadedWorkMsInt32. Return how many milliseconds maximum to spend on non-threaded low-priority work. Or Set how many milliseconds maximum per frame to spend on low-priority work, when there are no worker threads.
NumThreadsUInt32. Return number of worker threads.
ToleranceInt32. Return the pool tolerance. Or Set the pool telerance before it starts deleting pool items.
TypeStringHash. Urho's type system type.
TypeNameString. Urho's low-level type name.
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
TypeStaticStringHash. Urho's low-level type, accessible as a static method.

Public Methods

Finish all queued work which has at least the specified priority. Main thread will also execute priority work. Pause worker threads if no more work remains.
Create worker threads. Can only be called once.
IsCompleted(UInt32) : Boolean
Return whether all work with at least the specified priority is finished.
Pause worker threads.
Resume worker threads.
SubscribeToWorkItemCompleted(Action<WorkItemCompletedEventArgs>) : Subscription
Subscribes to the WorkItemCompleted event raised by the WorkQueue.

Public Events