Table of Contents

Class OwnerThread

Namespace
Maplibre.NativeFfi.Runtime
Assembly
Maplibre.NativeFfi.dll

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

bool

OwnerManagedThreadId

The managed thread ID for the bound owner thread.

public int OwnerManagedThreadId { get; }

Property Value

int

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

operation Action

Invoke<T>(Func<T>)

Runs an operation on the owner thread and returns its result.

public T Invoke<T>(Func<T> operation)

Parameters

operation Func<T>

Returns

T

Type Parameters

T