Use default waitset on server
This commit is contained in:
parent
042a4187ed
commit
da6dbaaff7
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
struct aos_rpc_server {
|
struct aos_rpc_server {
|
||||||
struct lmp_chan *chan;
|
struct lmp_chan *chan;
|
||||||
struct waitset ws;
|
|
||||||
void *shared_mem;
|
void *shared_mem;
|
||||||
|
|
||||||
struct capref ret_cap;
|
struct capref ret_cap;
|
||||||
|
|||||||
@ -76,7 +76,7 @@ static void rpc_server_send_reply(void *arg) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Cannot send right now, try again later
|
// Cannot send right now, try again later
|
||||||
err = lmp_chan_register_send(rpc->chan, &rpc->ws, MKCLOSURE(rpc_server_send_reply, arg));
|
err = lmp_chan_register_send(rpc->chan, get_default_waitset(), MKCLOSURE(rpc_server_send_reply, arg));
|
||||||
if (err_is_fail(err)) {
|
if (err_is_fail(err)) {
|
||||||
DEBUG_ERR(err, "Could not register send handler");
|
DEBUG_ERR(err, "Could not register send handler");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user