mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 11:49:23 +02:00
+ added AtomicNotify() to the WebAssembly unit
This commit is contained in:
parent
19cce3e42e
commit
a916aa36d8
@ -115,6 +115,11 @@ function AtomicWait(constref Mem: UInt32; Compare: UInt32; TimeoutNanoseconds: I
|
||||
function AtomicWait(constref Mem: Int64; Compare: Int64; TimeoutNanoseconds: Int64): Int32;
|
||||
function AtomicWait(constref Mem: UInt64; Compare: UInt64; TimeoutNanoseconds: Int64): Int32;
|
||||
|
||||
function AtomicNotify(constref Mem: Int32; Count: UInt32): UInt32; inline;
|
||||
function AtomicNotify(constref Mem: UInt32; Count: UInt32): UInt32; inline;
|
||||
function AtomicNotify(constref Mem: Int64; Count: UInt32): UInt32; inline;
|
||||
function AtomicNotify(constref Mem: UInt64; Count: UInt32): UInt32; inline;
|
||||
|
||||
implementation
|
||||
|
||||
{$I cpuh.inc}
|
||||
@ -504,4 +509,24 @@ begin
|
||||
AtomicWait:=fpc_wasm32_memory_atomic_wait64(@Mem,Compare,TimeoutNanoseconds);
|
||||
end;
|
||||
|
||||
function AtomicNotify(constref Mem: Int32; Count: UInt32): UInt32; inline;
|
||||
begin
|
||||
AtomicNotify:=fpc_wasm32_memory_atomic_notify(@Mem,Count);
|
||||
end;
|
||||
|
||||
function AtomicNotify(constref Mem: UInt32; Count: UInt32): UInt32; inline;
|
||||
begin
|
||||
AtomicNotify:=fpc_wasm32_memory_atomic_notify(@Mem,Count);
|
||||
end;
|
||||
|
||||
function AtomicNotify(constref Mem: Int64; Count: UInt32): UInt32; inline;
|
||||
begin
|
||||
AtomicNotify:=fpc_wasm32_memory_atomic_notify(@Mem,Count);
|
||||
end;
|
||||
|
||||
function AtomicNotify(constref Mem: UInt64; Count: UInt32): UInt32; inline;
|
||||
begin
|
||||
AtomicNotify:=fpc_wasm32_memory_atomic_notify(@Mem,Count);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user