mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
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.
22 lines
367 B
Modula-2
22 lines
367 B
Modula-2
object channel : object {
|
|
uid 3ea38b96aa0e54c8
|
|
|
|
capabilities [
|
|
send
|
|
receive
|
|
close
|
|
]
|
|
|
|
method create [constructor]
|
|
method close [destructor cap:close]
|
|
|
|
method send [cap:send] {
|
|
param data buffer [inout]
|
|
}
|
|
|
|
method receive [cap:receive] {
|
|
param data buffer [out]
|
|
param flags uint64
|
|
}
|
|
}
|