Re: Design for a game with Gtkmm as GUI and GLibmm for threads
- From: Niko Demmel <niko demmel gmx de>
- To: Paul Pogonyshev <pogonyshev gmx net>
- Cc: gtkmm-list gnome org
- Subject: Re: Design for a game with Gtkmm as GUI and GLibmm for threads
- Date: Thu, 15 Mar 2007 22:12:46 +0100
Paul Pogonyshev wrote:
>
> Working thread:
> Create new dispatcher
> Connect my_dispatch_handler with some bound data to it
> Invoke it
>
> Main thread:
> global or otherwise visible variable: the_signal
> ...
> my_dispatch_handler (...):
> emit the_signal with data passed from another thread
>
> Thus, dispatcher is used only to cross thread boundaries and normal
> signal (which can be connected by whoever in normal way) used once message
> gets to the main thread.
>
>
Ahh, I see. With that extra layer of another signal in the main thread,
that everyone can connect to it makes perfect sense.
Thanks a bunch,
Niko
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]