305 |
static bool main_loop_started = false; |
static bool main_loop_started = false; |
306 |
if (!main_loop_started) { |
if (!main_loop_started) { |
307 |
Cond initialized; |
Cond initialized; |
308 |
Glib::Threads::Thread::create( |
#ifdef OLD_THREADS |
309 |
|
Glib::Thread::create( |
310 |
sigc::bind(sigc::ptr_fun(&GigEditState::main_loop_run), |
sigc::bind(sigc::ptr_fun(&GigEditState::main_loop_run), |
311 |
&initialized), |
&initialized), |
312 |
false); |
false); |
313 |
|
#else |
314 |
|
Glib::Threads::Thread::create( |
315 |
|
sigc::bind(sigc::ptr_fun(&GigEditState::main_loop_run), |
316 |
|
&initialized)); |
317 |
|
#endif |
318 |
initialized.wait(); |
initialized.wait(); |
319 |
main_loop_started = true; |
main_loop_started = true; |
320 |
} |
} |