From 53dd42da082c3c290eca1891aa05e3bb63de007d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 17 Mar 2026 20:13:01 +0100 Subject: [FEAT] Threading in the GenericsLibrary. Signed-off-by: Amlal El Mahrouss --- include/GenericsLibrary/thread.nhh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/GenericsLibrary/thread.nhh (limited to 'include/GenericsLibrary/thread.nhh') diff --git a/include/GenericsLibrary/thread.nhh b/include/GenericsLibrary/thread.nhh new file mode 100644 index 0000000..f60d110 --- /dev/null +++ b/include/GenericsLibrary/thread.nhh @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) +// Licensed under the Apache License, Version 2.0 (See accompanying +// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0) +// Official repository: https://github.com/ne-foss-org/nectar + +#ifndef NECTAR_GL_THREAD_NHH +#define NECTAR_GL_THREAD_NHH + +trait thread_traits +{ + let join(); + let detach(); + let get(); +} + +let create_thread(let entrypoint, let id); +let exit_thread(let id); + +let get_status_thread(let id); + +#endif \ No newline at end of file -- cgit v1.2.3