Re: [gtkmm] 2 mainloops in 2 different threads?
- From: Stephan Puchegger <puchs ap univie ac at>
- To: Paul Davis <pbd op net>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] 2 mainloops in 2 different threads?
- Date: Thu, 19 Sep 2002 09:16:42 +0200 (CEST)
Thanks for the reply!
Also thanks for the pointer to "Model-View-Controller". I will have a look
at it and perhaps I will then understand why I should/need not have two
main loops. Please forgive my ignorance which is due to me not being a
computer scientist but a material physicist.
I am pretty sure, that I do not actually need two main loops, but I face
the problem, that the library can be incorporated into a a GUI programm or
or simple "script like programm", that has no main loop in the first
thread. I nevertheless need to service the database link. So either the
programm has two main loops (one doing whatever the user wants it to do
(Gui, ...) and the second connected to the database) or just one mainloop
(connected to the database). The library should be the same for both
szenarios. And thats why I came to this solution. I believe (I do stress the
word believe - I do not know for sure), that possibly having two mainloops
is not the worst solution to this problem. I am always willing to have a look
at other possible solutions - e.g. "Model-View-Controller" and I am very
grateful, that you have pointed out this concept.
Thanks
Stephan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]