From e9a866bf2cfa4a20bd25018e5036a413eb804920 Mon Sep 17 00:00:00 2001 From: Harbour Date: Fri, 12 Oct 2007 04:25:38 +0300 Subject: [PATCH] Make FLTK UI more thread-safe --- src/F_FLTK_UI.C | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/F_FLTK_UI.C b/src/F_FLTK_UI.C index 7061f5f..754eafd 100644 --- a/src/F_FLTK_UI.C +++ b/src/F_FLTK_UI.C @@ -35,10 +35,8 @@ void F_FLTK_UI::run() // log("fltk_ui", "Default fltk main_loop has started."); while (1) { // do main fltk work, so our apps _has_ to be thread aware - //Fl::wait(); - Fl::check(); + Fl::wait(.01); //void* m = fltk::thread_message(); //printf("Received message: %p\n", m); - Thread::sleep(10); } } -- 2.11.4.GIT