Add Platform::Yield

This commit is contained in:
Wojtek Figat
2025-07-28 18:33:05 +02:00
parent a7ffd9e57f
commit a00ffe6ec3
12 changed files with 34 additions and 4 deletions

View File

@@ -436,11 +436,16 @@ public:
static void SetThreadAffinityMask(uint64 affinityMask) = delete;
/// <summary>
/// Suspends the execution of the current thread until the time-out interval elapses
/// Suspends the execution of the current thread until the time-out interval elapses.
/// </summary>
/// <param name="milliseconds">The time interval for which execution is to be suspended, in milliseconds.</param>
static void Sleep(int32 milliseconds) = delete;
/// <summary>
/// Yields the execution of the current thread to another thread that is ready to run on the current processor.
/// </summary>
static void Yield() = delete;
public:
/// <summary>
/// Gets the current time in seconds.