8 BC_DialogThread::BC_DialogThread()
12 startup_lock = new Mutex("BC_DialogThread::startup_lock");
13 window_lock = new Mutex("BC_DialogThread::window_lock");
16 BC_DialogThread::~BC_DialogThread()
18 startup_lock->lock("BC_DialogThread::~BC_DialogThread");
25 startup_lock->unlock();
32 void BC_DialogThread::start()
36 window_lock->lock("BC_DialogThread::start");
39 gui->lock_window("BC_DialogThread::start");
43 window_lock->unlock();
47 // Don't allow anyone else to create the window
48 startup_lock->lock("BC_DialogThread::start");
52 startup_lock->lock("BC_DialogThread::start");
53 startup_lock->unlock();
56 void BC_DialogThread::run()
59 startup_lock->unlock();
60 int result = gui->run_window();
62 window_lock->lock("BC_DialogThread::run");
65 window_lock->unlock();
67 handle_close_event(result);
70 BC_Window* BC_DialogThread::new_gui()
72 printf("BC_DialogThread::new_gui called\n");
76 void BC_DialogThread::handle_close_event(int result)