We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0801c9e commit f3bb8eaCopy full SHA for f3bb8ea
Common/Qt/Redispatch.h
@@ -12,9 +12,10 @@
12
namespace PokemonAutomation{
13
14
15
-// Disable these since they are dangerous.
16
-//void dispatch_to_main_thread(std::function<void()> lambda);
17
-//void queue_on_main_thread(std::function<void()> lambda);
+// Be careful with these due to re-entrancy and object lifetime.
+void dispatch_to_main_thread(std::function<void()> lambda);
+void queue_on_main_thread(std::function<void()> lambda);
18
+
19
20
void run_on_main_thread_and_wait(std::function<void()> lambda);
21
0 commit comments