Urho
1.0.0.0
Urho.UrhoObject
Work queue subsystem for multithreading.
To be added.
Constructor
1.0.0.0
Constructs a new instance of Urho.WorkQueue which is tied to the .
Constructor
1.0.0.0
Pointer to the raw unmanaged Urho object.
Constructs a new instance of Urho.WorkQueue, given a raw pointer to an unmanaged object
This creates a new managed wrapper for the type using the raw pointer to an unmanaged object.
Objects that are created in this fashion get registered with the UrhoSharp runtime.
This is intended to be used by the UrhoSharp runtime, and is not intended to be used by users.
Constructor
1.0.0.0
The context that this object will be attached to.
Constructs a new instance of Urho.WorkQueue linked to a specific .
Constructor
1.0.0.0
Pass UrhoObjectFlag.Empty.
Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.
This constructor should be invoked by your code if you provide your own constructor that sets the handle field.
This essentially circumvents the default path that creates a new object and sets the handle and does not call RegisterObject on the target, you must do this on your own constructor.
You would typically chain to this constructor from your own, and then set the handle to the unmanaged object from your code, and then register your object.
Method
1.0.0.0
System.Void
To be added.
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.
To be added.
Property
1.0.0.0
System.Boolean
Return whether the queue is currently completing work in the main thread.
To be added.
To be added.
Method
1.0.0.0
System.Void
To be added.
Create worker threads. Can only be called once.
To be added.
Property
1.0.0.0
Urho.WorkItem
Get pointer to an usable WorkItem from the item pool. Allocate one if no more free items.
To be added.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
Return whether all work with at least the specified priority is finished.
To be added.
To be added.
Property
1.0.0.0
System.Int32
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.
To be added.
To be added.
Property
1.0.0.0
System.UInt32
Return number of worker threads.
To be added.
To be added.
Method
1.0.0.0
System.Void
Pause worker threads.
To be added.
Method
1.0.0.0
System.Void
Resume worker threads.
To be added.
Method
1.0.0.0
Urho.Subscription
The handler to invoke when this event is raised.
Subscribes to the WorkItemCompleted event raised by the WorkQueue.
Returns an Urho.Subscription that can be used to cancel the subscription.
This method will override any prior subscription, including those assigned to on event handlers.
This has the advantage that it does a straight connection and returns a handle that is easy to unsubscribe from.
For a more event-like approach, use the event.
Property
1.0.0.0
System.Int32
Return the pool tolerance.
Or
Set the pool telerance before it starts deleting pool items.
To be added.
To be added.
Property
1.0.0.0
Urho.StringHash
Urho's type system type.
StringHash representing the type for this C# type.
This returns the Urho's type and is surfaced for low-level Urho code.
Property
1.0.0.0
System.String
Urho's low-level type name.
Stringified low-level type name.
Property
1.0.0.0
System.String
Urho's low-level type name, accessible as a static method.
Stringified low-level type name.
Property
1.0.0.0
Urho.StringHash
Urho's low-level type, accessible as a static method.
This returns the Urho's type and is surface for the low-level Urho code.
Event
1.0.0.0
System.Action<Urho.WorkItemCompletedEventArgs>
To be added.
The event can register multiple callbacks and invoke all of them. If this is not desired, and you only need a single shot callback, you can use the method. That one will force that callback and will ignore any previously set events here.