Re: blocked gui - threading problem?
- From: Bartosz Kostrzewa <zoombat runbox com>
- Cc: gtkmm-list gnome org
- Subject: Re: blocked gui - threading problem?
- Date: Mon, 16 Jul 2007 00:00:58 +0200
I'm pretty confident the problem is the usleep you have in there. It
would make much more sense to use a signal and corresponding event
handler to grab the move (if it is a simple mouseclick, just block any
events on the input widget while the player is not allowed to make a
move and then enable them again, this can be achieved quite simply by
changing the event mask to nothing in one case and whatever you need in
the other case, then just handle the click normally, getting the
position from the event object)
You could also try forcing the main iteration somewhere in the code using
while(Gtk::Main::events_pending()) Gtk::Main::iteration();
-Bartek
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]