Is wxWindow::HandleWindowEvent safe for multithreading Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Ronald
I live to help wx-kind
I live to help wx-kind
Posts: 162
Joined: Mon Mar 05, 2018 4:17 am

Is wxWindow::HandleWindowEvent safe for multithreading

Post by Ronald » Mon Oct 21, 2019 3:40 am

In working thread call wxWindow::HandleWindowEvent to updtae UI, is it safe?

User avatar
doublemax
Moderator
Moderator
Posts: 15278
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Is wxWindow::HandleWindowEvent safe for multithreading

Post by doublemax » Mon Oct 21, 2019 5:58 am

No. Use QueueEvent or AddPendingEvent.
https://docs.wxwidgets.org/trunk/classw ... ef0318b59a
Use the source, Luke!

Post Reply