forked from Imagelibrary/lwip
tcpip.h, tcpip.c, api.h, api_lib.c, api_msg.c, sockets.c: replace the field netconn::mbox (sys_mbox_t) per netconn::sem (sys_sem_t) for the task #7490 "Add return value to sys_mbox_post".
This commit is contained in:
@@ -410,7 +410,7 @@ tcpip_apimsg(struct api_msg *apimsg)
|
||||
msg.type = TCPIP_MSG_API;
|
||||
msg.msg.apimsg = apimsg;
|
||||
sys_mbox_post(mbox, &msg);
|
||||
sys_arch_mbox_fetch(apimsg->msg.conn->mbox, NULL, 0);
|
||||
sys_arch_sem_wait(apimsg->msg.conn->sem, 0);
|
||||
return ERR_OK;
|
||||
}
|
||||
return ERR_VAL;
|
||||
|
||||
Reference in New Issue
Block a user