Lorenzo Tessiore wrote:
err_t

tcpip_apimsg(struct api_msg *apimsg)

{

  struct tcpip_msg msg;

  if (mbox != SYS_MBOX_NULL) {

    msg.type = TCPIP_MSG_API;

    msg.msg.apimsg = apimsg;

    sys_mbox_post(mbox, &msg);

    sys_arch_sem_wait(apimsg->msg.conn->op_completed, 0);

The above line waits until the message is processed, therefore allocation on the stack is OK.

Simon
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to