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:
fbernon
2008-01-10 21:34:25 +00:00
parent b333b7c9dc
commit bceff76c70
7 changed files with 34 additions and 30 deletions

View File

@@ -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;