mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[kernel] Add a timeout to endpoint recieve syscalls
This also required adding support for multiple wait conditions on a thread, so wait_type is an enum_bitfield now. I really need a real clock.
This commit is contained in:
@@ -18,6 +18,7 @@ object endpoint : kobject {
|
||||
method receive {
|
||||
param tag uint64 [out]
|
||||
param data buffer [out]
|
||||
param timeout uint64 # Receive timeout in nanoseconds
|
||||
}
|
||||
|
||||
# Send a message on a channel and then await a new message.
|
||||
@@ -26,5 +27,6 @@ object endpoint : kobject {
|
||||
method sendrecv {
|
||||
param tag uint64 [inout]
|
||||
param data buffer [inout]
|
||||
param timeout uint64 # Receive timeout in nanoseconds
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user