lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] sys_mbox_post


From: address@hidden
Subject: Re: [lwip-users] sys_mbox_post
Date: Mon, 05 Apr 2010 22:19:02 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]