Class GameThread
Utility for quickly checking if the current thread is the game thread.
public static class GameThread
- Inheritance
-
GameThread
- Inherited Members
Properties
IsCurrent
public static bool IsCurrent { get; }
Property Value
Remarks
Much more effecient than IsGameThread(Thread).
Methods
AssertCurrent()
Throw an error if this function isn't ran on the main thread.
public static void AssertCurrent()
Exceptions
- GameThreadException
Not on main thread.
AssertCurrent(string)
Throw an error if this function isn't ran on the main thread.
public static void AssertCurrent(string feature)
Parameters
featurestring
Exceptions
- GameThreadException
Not on main thread.