|
|
El 28/2/21 a las 12:04, lifeatt...@gmail.com escribió:
I believe the "correct" solution is to use Fl::awake() to tell the
main thread to perform some operation.
If you can use C++, then you could track thread ids yourself using
#include <thread>
std::thread::id main_thread;
main()
{
main_thread = std::this_thread;
}
func()
{
if (std::this_thread == main_thread)
{
win.show();
}
}
Oh yes! std::thread::id! Had completely forgotten about it. One gets
so immersed in fltk that forgets that the rest of C++ exists :D
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/97c9d6e7-d54f-15f3-2078-848461cfd490%40gmail.com.
[ Direct Link to Message ] | |
|
| |