diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-02 14:53:33 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-02 14:53:33 +0100 |
| commit | 7d9fb7e4244d996f744233be046d9aa90afa8964 (patch) | |
| tree | eccd99f623291e4abe8bebb46936e035060eb6d8 /include/GenericsLibrary/pstd.nhh | |
| parent | fe6ba8bd1a59f48000e7cd04a5f7ae10592dc25b (diff) | |
chore: GL improvements of pstd, and DebuggerKit tweaks.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/GenericsLibrary/pstd.nhh')
| -rw-r--r-- | include/GenericsLibrary/pstd.nhh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/GenericsLibrary/pstd.nhh b/include/GenericsLibrary/pstd.nhh index 5df5232..fd0b196 100644 --- a/include/GenericsLibrary/pstd.nhh +++ b/include/GenericsLibrary/pstd.nhh @@ -5,10 +5,21 @@ #pragma once +#define PALLOC_INVALID 0 + extern __nrt_palloc; +extern __nrt_pfree; -#define PALLOC_INVALID 0 +extern __nrt_pthread_new; +extern __nrt_pthread_kill; + +//@ Parallel free +let pfree(let ptr) +{ + return __nrt_pfree(ptr); +} +//@ Parallel alloc (bytes) let palloc(let type, let sz, let align := 0) { return __nrt_palloc(type, sz, align); |
