[vlc-commits] activex: connectioncontainer: Use an atomic bool instead of a volatile one

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 21 10:16:14 CEST 2015


npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Apr 14 13:35:28 2015 +0200| [9d899f69d38e782ef6eca5d4f680ba76d61448d4] | committer: Hugo Beauzée-Luyssen

activex: connectioncontainer: Use an atomic bool instead of a volatile one

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=9d899f69d38e782ef6eca5d4f680ba76d61448d4
---

 activex/connectioncontainer.cpp |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/activex/connectioncontainer.cpp b/activex/connectioncontainer.cpp
index b6fc45b..0b17285 100644
--- a/activex/connectioncontainer.cpp
+++ b/activex/connectioncontainer.cpp
@@ -26,6 +26,8 @@
 #include "connectioncontainer.h"
 #include "utils.h"
 
+#include <atomic>
+
 using namespace std;
 
 #ifdef __MINGW32__
@@ -131,7 +133,7 @@ public:
 
 private:
     VLCConnectionPointContainer *_pCPC;
-    volatile bool _HasUnprocessedNotify;
+    std::atomic_bool _HasUnprocessedNotify;
 };
 
 HINSTANCE EventSystemProxyWnd::_hInstance=0;



More information about the vlc-commits mailing list