Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os by
api_msg Struct Reference
This struct includes everything that is necessary to execute a function for a netconn in another thread context (mainly used to process netconns in the tcpip_thread context to be thread safe). More...
#include <api_msg.h>
Data Fields | |
struct netconn * | conn |
The netconn which to process - always needed: it includes the semaphore which is used to block the application thread until the function finished. | |
err_t | err |
The return value of the function executed in tcpip_thread. | |
void(* | function )(struct api_msg_msg *msg) |
function to execute in tcpip_thread context | |
struct api_msg_msg | msg |
arguments for this function | |
struct netbuf * | b |
used for lwip_netconn_do_send |
Detailed Description
This struct includes everything that is necessary to execute a function for a netconn in another thread context (mainly used to process netconns in the tcpip_thread context to be thread safe).
This struct contains a function to execute in another thread context and a struct api_msg_msg that serves as an argument for this function.
This is passed to tcpip_apimsg to execute functions in tcpip_thread context.
Definition at line 80 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.
Field Documentation
used for lwip_netconn_do_send
Definition at line 89 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.
The netconn which to process - always needed: it includes the semaphore which is used to block the application thread until the function finished.
Definition at line 83 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.
The return value of the function executed in tcpip_thread.
Definition at line 85 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.
void(* function)(struct api_msg_msg *msg) |
function to execute in tcpip_thread context
Definition at line 122 of file unsupported/net/lwip/lwip/include/lwip/api_msg.h.
struct api_msg_msg msg |
arguments for this function
Definition at line 124 of file unsupported/net/lwip/lwip/include/lwip/api_msg.h.
Generated on Tue Jul 12 2022 13:16:38 by
