mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 07:29:29 +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: Int64; Compare: Int64; TimeoutNanoseconds: Int64): Int32;
|
||||||
function AtomicWait(constref Mem: UInt64; Compare: UInt64; 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
|
implementation
|
||||||
|
|
||||||
{$I cpuh.inc}
|
{$I cpuh.inc}
|
||||||
@ -504,4 +509,24 @@ begin
|
|||||||
AtomicWait:=fpc_wasm32_memory_atomic_wait64(@Mem,Compare,TimeoutNanoseconds);
|
AtomicWait:=fpc_wasm32_memory_atomic_wait64(@Mem,Compare,TimeoutNanoseconds);
|
||||||
end;
|
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.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user