diff options
| author | Amlal EL Mahrouss <amlal@softwarelabs.com> | 2024-06-09 19:59:14 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlal@softwarelabs.com> | 2024-06-09 19:59:14 +0200 |
| commit | 3cded2a8deaaa8e6907ed1b47d174eb267aab7aa (patch) | |
| tree | c62fd9f4a8ffe55a9c4066f76bed841872155d1b /SDK/Libraries/CoreSystem/Headers/Thread.h | |
| parent | 9679f4d8676cb72feb80d95bca6ce26965f40042 (diff) | |
MHR-23: Refactor and finishing SMP support.
Diffstat (limited to 'SDK/Libraries/CoreSystem/Headers/Thread.h')
| -rw-r--r-- | SDK/Libraries/CoreSystem/Headers/Thread.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/SDK/Libraries/CoreSystem/Headers/Thread.h b/SDK/Libraries/CoreSystem/Headers/Thread.h deleted file mode 100644 index 15b40df3..00000000 --- a/SDK/Libraries/CoreSystem/Headers/Thread.h +++ /dev/null @@ -1,47 +0,0 @@ -/* ------------------------------------------- - - Copyright SoftwareLabs - -------------------------------------------- */ - -// -// Created by Amlal on 3/18/24 -// - -#ifndef __THREAD__ -#define __THREAD__ - -#include <Headers/Defines.h> - -#define kThreadErrorExit (-33) - -/// @brief Thread reference. -typedef QWordType ThreadRef; - -/// @brief Main application thread. -CS_EXTERN_C ThreadRef kMainThread; - -typedef VoidType (*ThreadEntrypointKind)(VoidType); - -/// @brief Creates a new thread, and runs the code. -/// @param threadName the thread's name. -/// @param threadStart where to start. -/// @return -CS_EXTERN_C ThreadRef CSThreadCreate(const CharacterTypeUTF8* threadName, ThreadEntrypointKind threadStart); - -/// @brief Dispoes the thread, and exits with code kThreadErrorExit -/// @param ref the thread reference. -/// @return nothing. -CS_EXTERN_C VoidType CSThreadRelease(ThreadRef ref); - -/// @brief Waits for the thread to complete. -/// @param ref the thread reference. -/// @return nothing. -CS_EXTERN_C VoidType CSThreadJoin(ThreadRef ref); - -/// @brief Yields the current thread. -/// @param ref the thead reference. -/// @return -CS_EXTERN_C VoidType CSThreadYield(ThreadRef ref); - -#endif // __THREAD__ |
