mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 03:29:41 +02:00
Allow mutex on wasm
This commit is contained in:
parent
3a481d9590
commit
5887b1fee3
@ -879,7 +879,11 @@ begin
|
||||
if (FHandle=TEventHandle(0)) then
|
||||
RaiseLastOSError;
|
||||
{$ELSE}
|
||||
raise ESyncObjectException.Create(SErrMutexNotSupported);
|
||||
{$IFDEF CPUWASM}
|
||||
// Todo
|
||||
{$ELSE}
|
||||
raise ESync ObjectException.Create(SErrMutexNotSupported);
|
||||
{$ENDIF CPUWASM}
|
||||
{$ENDIF WINDOWS}
|
||||
{$ENDIF UNIX}
|
||||
end;
|
||||
@ -906,7 +910,11 @@ begin
|
||||
if FHandle=TEventHandle(0) then
|
||||
RaiseLastOSError;
|
||||
{$ELSE}
|
||||
raise ESyncObjectException.Create(SErrMutexNotSupported);
|
||||
{$IFDEF CPUWASM}
|
||||
// Todo
|
||||
{$ELSE}
|
||||
raise ESync ObjectException.Create(SErrMutexNotSupported);
|
||||
{$ENDIF CPUWASM}
|
||||
{$ENDIF WINDOWS}
|
||||
{$ENDIF UNIX}
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user