[kernel] Add thread_join syscall

Thread joining is an important primitive that I seem to have totally
forgotten to implement previously.
This commit is contained in:
Justin C. Miller
2022-10-20 21:58:10 -07:00
parent 194776d226
commit 2703080df2
4 changed files with 32 additions and 3 deletions

View File

@@ -36,6 +36,12 @@ thread_kill(thread *self)
return j6_status_ok;
}
j6_status_t
thread_join(thread *self)
{
return self->join();
}
j6_status_t
thread_exit()
{