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
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment