summaryrefslogtreecommitdiff
path: root/src/wx/video_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-06-12 00:27:33 +0200
committerCarl Hetherington <cth@carlh.net>2025-06-14 23:43:13 +0200
commita12a943c99ba4aba122f91c93b078d2e87146b32 (patch)
tree93e149bc2d6f9c2ff98aa05c5d51e096dd0c6598 /src/wx/video_view.h
parent6d2d4973ccd5d4c78414d28988a74dfa7287f001 (diff)
Use a new UISignal which checks thread safety slightly.3052-hang
This adds a wrapper around signals2::signal which checks that emission happens from the GUI thread, for signals whose handlers must be called in the UI thread. I'm not sure how helpful it really is but maybe it catches some bad situations.
Diffstat (limited to 'src/wx/video_view.h')
-rw-r--r--src/wx/video_view.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/video_view.h b/src/wx/video_view.h
index 04c52a35d..f24aff790 100644
--- a/src/wx/video_view.h
+++ b/src/wx/video_view.h
@@ -26,6 +26,7 @@
#include "optimisation.h"
#include "lib/dcpomatic_time.h"
#include "lib/exception_store.h"
+#include "lib/signal.h"
#include "lib/signaller.h"
#include "lib/timer.h"
#include "lib/types.h"
@@ -76,9 +77,9 @@ public:
bool reset_metadata (std::shared_ptr<const Film> film, dcp::Size player_video_container_size);
/** Emitted from the GUI thread when our display changes in size */
- boost::signals2::signal<void()> Sized;
+ UISignal<void()> Sized;
/** Emitted from the GUI thread when a lot of frames are being dropped */
- boost::signals2::signal<void()> TooManyDropped;
+ UISignal<void()> TooManyDropped;
/* Accessors for FilmViewer */