From 92a4044703627c2baf5d53243355ff4f5e2bff9f Mon Sep 17 00:00:00 2001 From: Harbour Date: Fri, 31 Aug 2007 19:38:44 +0300 Subject: [PATCH] Update UI thread priority --- F/F_UI.H | 2 +- src/F_FLTK_UI.C | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/F/F_UI.H b/F/F_UI.H index f13f591..7570b28 100644 --- a/F/F_UI.H +++ b/F/F_UI.H @@ -41,7 +41,7 @@ namespace F { void wait_for_started() { ui_started_.wait(); } - F_UI(ui_class_t ui_class, unsigned char ui_priority = 0) { + F_UI(ui_class_t ui_class, unsigned char ui_priority = 0) : Thread(1) { ui_class_ = ui_class; ui_priority_ = ui_priority; ui_list_.push_back(this); diff --git a/src/F_FLTK_UI.C b/src/F_FLTK_UI.C index 9df29c4..43aad6a 100644 --- a/src/F_FLTK_UI.C +++ b/src/F_FLTK_UI.C @@ -31,9 +31,10 @@ 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::wait(); + Fl::check(); //void* m = fltk::thread_message(); //printf("Received message: %p\n", m); - //Thread::sleep(10); + Thread::sleep(10); } } -- 2.11.4.GIT