// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
namespace FlaxEngine
{
partial class Platform
{
///
/// Checks if current execution in on the main thread.
///
/// True if running on the main thread, otherwise false.
public static bool IsInMainThread => CurrentThreadID == Globals.MainThreadID;
}
}