Skip to content

Commit f3bb8ea

Browse files
committed
Fix build.
1 parent 0801c9e commit f3bb8ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Common/Qt/Redispatch.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
namespace PokemonAutomation{
1313

1414

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);
15+
// Be careful with these due to re-entrancy and object lifetime.
16+
void dispatch_to_main_thread(std::function<void()> lambda);
17+
void queue_on_main_thread(std::function<void()> lambda);
18+
1819

1920
void run_on_main_thread_and_wait(std::function<void()> lambda);
2021

0 commit comments

Comments
 (0)