Kernel+LibPthread: Implement pthread_join()

It's now possible to block until another thread in the same process has
exited. We can also retrieve its exit value, which is whatever value it
passed to pthread_exit(). :^)
This commit is contained in:
Andreas Kling 2019-11-14 20:58:23 +01:00
commit 69efa3f630
Notes: sideshowbarker 2024-07-19 11:13:22 +09:00
9 changed files with 117 additions and 5 deletions

View file

@ -137,7 +137,8 @@ typedef u32 socklen_t;
__ENUMERATE_SYSCALL(getrandom) \
__ENUMERATE_SYSCALL(clock_gettime) \
__ENUMERATE_SYSCALL(clock_nanosleep) \
__ENUMERATE_SYSCALL(openat)
__ENUMERATE_SYSCALL(openat) \
__ENUMERATE_SYSCALL(join_thread)
namespace Syscall {