[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

@@ -3,6 +3,7 @@ object thread : object {
capabilities [
kill
join
]
method create [constructor] {
@@ -13,6 +14,8 @@ object thread : object {
method kill [destructor cap:kill]
method join [cap:join]
method exit [static]
method sleep [static] {