summaryrefslogtreecommitdiff
path: root/src/wx/player_stress_tester.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/player_stress_tester.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/player_stress_tester.h')
-rw-r--r--src/wx/player_stress_tester.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/player_stress_tester.h b/src/wx/player_stress_tester.h
index 534cf8c76..1307fac8e 100644
--- a/src/wx/player_stress_tester.h
+++ b/src/wx/player_stress_tester.h
@@ -19,11 +19,11 @@
*/
+#include "lib/signal.h"
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
LIBDCP_ENABLE_WARNINGS
-#include <boost/signals2.hpp>
#include <boost/filesystem.hpp>
@@ -62,7 +62,7 @@ public:
_suspended = s;
}
- boost::signals2::signal<void (boost::filesystem::path)> LoadDCP;
+ UISignal<void (boost::filesystem::path)> LoadDCP;
private:
void check_commands ();