summaryrefslogtreecommitdiff
path: root/src/linux/thread.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-05-12 19:04:01 +0200
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-05-12 19:04:01 +0200
commita7f382b431e6eed3f180c71d4175970da096eab9 (patch)
tree0099dba56efe2eb24d82481ed6ea5294e7b4bfb9 /src/linux/thread.c
parentd4dbb9333666a2a0c752ecee49b4f70b8e4c1371 (diff)
work
Diffstat (limited to 'src/linux/thread.c')
-rw-r--r--src/linux/thread.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/linux/thread.c b/src/linux/thread.c
index b6295ef..f7c4c3c 100644
--- a/src/linux/thread.c
+++ b/src/linux/thread.c
@@ -48,7 +48,7 @@ inline void thread_join(thread *thread)
}
}
-bool thread_tryjoin(thread *thread)
+inline bool thread_tryjoin(thread *thread)
{
if (thread->valid)
{
@@ -59,6 +59,11 @@ bool thread_tryjoin(thread *thread)
return false;
}
+inline void thread_exit()
+{
+ pthread_exit(0);
+}
+
inline void thread_stop(thread *thread)
{
if (thread->valid)