summaryrefslogtreecommitdiff
path: root/core/thread.c
AgeCommit message (Collapse)Author
2025-03-20core: refactor core API to be in proper styleDanny Holman
Bring the rest of the core API to be in line with the project coding style. This commit also makes the coding style change formal by updating the coding style document in the documentation. Signed-off-by: Danny Holman <dholman@gymli.org>
2024-11-19core: thread objects should be replaced with listsDanny Holman
Replace the thread and mutex handles in the thread API with list_heads. This will prevent a possible NULL pointer exception and make the code more readable. Signed-off-by: Danny Holman <dholman@gymli.org>
2024-10-14core: thread: make helper functions staticDanny Holman
Make the helper functions for the thread API static so that they aren't usable outside the thread API's translation unit. Signed-off-by: Danny Holman <dholman@gymli.org>
2024-10-03core: thread: wrap the pthreads APIDanny Holman
Create wrapper functions over the pthread API so that the engine only has to provide an integer ID for threads and mutexes. The thread and mutex handles should be handled internally so that the end user never sees the underlying datatypes. Signed-off-by: Danny Holman <dholman@gymli.org>