[kernel] Simplify mailbox code, and messages
A number of simplifications of mailboxes now that the interface is much simpler, and synchronous. * call and respond can now only transfer one handle at a time * mailbox objects got rid of the message queue, and just have wait_queues of blocked threads, and a reply_to map. * threads now have a message_data struct on them for use by mailboxes
This commit is contained in:
@@ -61,10 +61,7 @@ channel_pump_loop()
|
||||
|
||||
uint64_t tag = j6_proto_sl_register;
|
||||
uint64_t proto_id = "jsix.protocol.stream.ouput"_id;
|
||||
size_t handle_count = 1;
|
||||
result = j6_mailbox_call(slp,
|
||||
&tag, &proto_id,
|
||||
&cout_write, &handle_count);
|
||||
result = j6_mailbox_call(slp, &tag, &proto_id, &cout_write);
|
||||
if (result != j6_status_ok)
|
||||
return 4;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user