[kernel] Allow blocking on empty channels

This commit adds a new flag, j6_channel_block, and a new flags param to
the channel_receive syscall. When the block flag is specified, the
caller will block waiting for data on the channel if the channel is
empty.
This commit is contained in:
Justin C. Miller
2022-02-28 20:10:56 -08:00
parent 446025fb65
commit b8684777e0
5 changed files with 38 additions and 30 deletions

View File

@@ -16,5 +16,6 @@ object channel : object {
method receive [cap:receive] {
param data buffer [out]
param flags uint64
}
}