Various cleanups and thread-safety.
[dcpomatic.git] / src / wx / gl_video_view.h
index 4f509049b3d4d954b60fd748f36f7188c24f9dff..827b12861c5d47ccb5caadadc668fdbb5b5222b2 100644 (file)
@@ -57,6 +57,10 @@ private:
        void create ();
        void check_for_butler_errors ();
 
+       /* Mutex for use of _canvas; it's only contended when our ::thread
+          is started up so this may be overkill.
+        */
+       boost::mutex _canvas_mutex;
        wxGLCanvas* _canvas;
        wxGLContext* _context;