make all objects used with atomic operations volatile
[musl] / src / aio / aio.c
index d1ee768..aafd8e8 100644 (file)
@@ -53,7 +53,8 @@ struct aio_thread {
        struct aiocb *cb;
        struct aio_thread *next, *prev;
        struct aio_queue *q;
-       int running, err, op;
+       volatile int running;
+       int err, op;
        ssize_t ret;
 };