Class Thread
- Namespace
- Sdl3Sharp.Threading
- Assembly
- Sdl3Sharp.dll
public sealed class Thread
- Inheritance
-
Thread
- Inherited Members
-
Properties
CurrentThreadId
public static ulong CurrentThreadId { get; }
Property Value
- ulong
Id
Property Value
- ulong
IsMainThread
public static bool IsMainThread { get; }
Property Value
- bool
Name
public string? Name { get; }
Property Value
- string
State
public ThreadState State { get; }
Property Value
- ThreadState
Methods
DelayMilliseconds(uint)
public static void DelayMilliseconds(uint milliseconds)
Parameters
milliseconds uint
DelayNanoseconds(ulong)
public static void DelayNanoseconds(ulong nanoseconds)
Parameters
nanoseconds ulong
DelayNanosecondsPrecise(ulong)
public static void DelayNanosecondsPrecise(ulong nanoseconds)
Parameters
nanoseconds ulong
TryRunOnMainThread(Action, bool)
public static bool TryRunOnMainThread(Action action, bool waitForCompletion = false)
Parameters
action Action
waitForCompletion bool
Returns
- bool
TrySetCurrentThreadPriority(ThreadPriority)
public static bool TrySetCurrentThreadPriority(ThreadPriority priority)
Parameters
priority ThreadPriority
Returns
- bool