rt: Add rust_port_select function
This commit is contained in:
parent
e62ddf4898
commit
b2cfb7ef82
8 changed files with 153 additions and 9 deletions
|
@ -593,6 +593,14 @@ port_recv(uintptr_t *dptr, rust_port *port,
|
|||
return;
|
||||
}
|
||||
|
||||
extern "C" CDECL void
|
||||
rust_port_select(rust_port **dptr, rust_port **ports,
|
||||
size_t n_ports, uintptr_t *yield) {
|
||||
rust_task *task = rust_task_thread::get_task();
|
||||
rust_port_selector *selector = task->get_port_selector();
|
||||
selector->select(task, dptr, ports, n_ports, yield);
|
||||
}
|
||||
|
||||
extern "C" CDECL void
|
||||
rust_set_exit_status(intptr_t code) {
|
||||
rust_task *task = rust_task_thread::get_task();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue