Skip to content
Snippets Groups Projects
Commit fff2dd26 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

extmod/modlwip: Mark some lwip_socket_obj_t's fields as volatile.

Any fields changed by asynchronous callbacks must be volatile.
parent a63d4a6c
Branches
No related tags found
No related merge requests found
...@@ -183,11 +183,11 @@ static const int error_lookup_table[] = { ...@@ -183,11 +183,11 @@ static const int error_lookup_table[] = {
typedef struct _lwip_socket_obj_t { typedef struct _lwip_socket_obj_t {
mp_obj_base_t base; mp_obj_base_t base;
union { volatile union {
struct tcp_pcb *tcp; struct tcp_pcb *tcp;
struct udp_pcb *udp; struct udp_pcb *udp;
} pcb; } pcb;
union { volatile union {
struct pbuf *pbuf; struct pbuf *pbuf;
struct tcp_pcb *connection; struct tcp_pcb *connection;
} incoming; } incoming;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment