workqueue: make it work on platforms without __sync_fetch_and_add()
[fio.git] / workqueue.h
index 5d47a5e64fdd908698e1909e06446b7fecbafa91..4e924493742e6dc50ed8a1f48aa8b973199a94f3 100644 (file)
@@ -17,6 +17,7 @@ struct workqueue {
 
        pthread_cond_t flush_cond;
        pthread_mutex_t flush_lock;
+       pthread_mutex_t stat_lock;
        volatile int wake_idle;
 };