extmod/modlwip: Mark some lwip_socket_obj_t's fields as volatile.
Any fields changed by asynchronous callbacks must be volatile.
This commit is contained in:
parent
a63d4a6cc2
commit
fff2dd2627
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue