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
No related branches found
No related tags found
No related merge requests found
......@@ -183,11 +183,11 @@ static const int error_lookup_table[] = {
typedef struct _lwip_socket_obj_t {
mp_obj_base_t base;
union {
volatile union {
struct tcp_pcb *tcp;
struct udp_pcb *udp;
} pcb;
union {
volatile union {
struct pbuf *pbuf;
struct tcp_pcb *connection;
} incoming;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment