The status code from thread exit had too many issues, (eg, how does it relate to process exit code? what happens when different threads exit with different exit codes?) and not enough value, so I'm getting rid of it.
22 lines
381 B
Modula-2
22 lines
381 B
Modula-2
object thread : object {
|
|
uid 11f23e593d5761bd
|
|
|
|
capabilities [
|
|
kill
|
|
]
|
|
|
|
method create [constructor] {
|
|
param process ref process [cap:create_thread]
|
|
param stack_top address
|
|
param entrypoint address
|
|
}
|
|
|
|
method kill [destructor cap:kill]
|
|
|
|
method exit [static]
|
|
|
|
method sleep [static] {
|
|
param duration uint64
|
|
}
|
|
}
|