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:
Paul Sokolovsky 2015-12-29 21:00:52 +02:00
parent a63d4a6cc2
commit fff2dd2627
1 changed files with 2 additions and 2 deletions

View File

@ -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;