Class OwnerThread
Dedicated owner-thread executor for thread-affine MapLibre Native handles.
public sealed class OwnerThread : IDisposable
- Inheritance
-
OwnerThread
- Implements
- Inherited Members
Constructors
OwnerThread()
public OwnerThread()
Properties
IsClosed
Whether the owner thread has stopped accepting and running work.
public bool IsClosed { get; }
Property Value
OwnerManagedThreadId
The managed thread ID for the bound owner thread.
public int OwnerManagedThreadId { get; }
Property Value
Methods
Close()
Stops accepting new work and waits for queued work to finish.
public void Close()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Invoke(Action)
Runs an operation on the owner thread and returns after it completes.
public void Invoke(Action operation)
Parameters
operationAction
Invoke<T>(Func<T>)
Runs an operation on the owner thread and returns its result.
public T Invoke<T>(Func<T> operation)
Parameters
operationFunc<T>
Returns
- T
Type Parameters
T