]> granicus.if.org Git - libx264/commitdiff
Fix data race detected by ThreadSanitizer
authorAnton Mitrofanov <BugMaster@narod.ru>
Mon, 4 Feb 2019 18:46:12 +0000 (21:46 +0300)
committerHenrik Gramner <henrik@gramner.com>
Sun, 3 Mar 2019 22:52:42 +0000 (23:52 +0100)
Bug report by Daniel Deptford.

common/threadpool.c

index 7f98f778dec1ab7a5c9de09374a2f95695b28c56..4d36105b05c30847b6b3440de4f87cb60463bced 100644 (file)
@@ -34,7 +34,7 @@ typedef struct
 
 struct x264_threadpool_t
 {
-    int            exit;
+    volatile int   exit;
     int            threads;
     x264_pthread_t *thread_handle;
     void           (*init_func)(void *);