Skip to content

Commit

Permalink
[WASI] throw PNSE in ManualResetEventSlim.Wait (#109839)
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Co-authored-by: pavelsavara <pavel.savara@gmail.com>
  • Loading branch information
dicej and pavelsavara authored Nov 19, 2024
1 parent 5b9bba7 commit 340629a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ public bool Wait(int millisecondsTimeout, CancellationToken cancellationToken)

ArgumentOutOfRangeException.ThrowIfLessThan(millisecondsTimeout, -1);

#if TARGET_WASI
if (OperatingSystem.IsWasi()) throw new PlatformNotSupportedException(); // TODO remove with https://github.com/dotnet/runtime/pull/107185
#endif
#if FEATURE_WASM_MANAGED_THREADS
Thread.AssureBlockingPossible();
#endif
Expand Down

0 comments on commit 340629a

Please sign in to comment.