more mainloops in more threads?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everyone.

After looking at documentation about mainloop implementation in Glib and doing 
some search on the Net, I've not understood the relation (if any) on 
mainloops and threads: can I run more loops in more threads? How to separate 
them?

My question is not only about handling of multiple GSources, expressed as file 
descriptors to watch on the same time, but also GObjects and signalling: 
given a thread, to which can be assigned a GMainContext as "owner" (if I not 
badly undestand...), and creating on it a GObject, where it is managed? How 
signals are dispatched between threads?: in a unique burst regardless of 
contexts, only on the emitting thread, or what other?

- -- 
+--- -- -                                                 --  ----+
|   Roberto -MadBob- Guido ---+--- bob4mail[AT]gmail.com          |
|                             +--- madbob[AT]jabber.linux.it      .
.                             |
    Step #1 in programming:   +--- http://madbob.homelinux.com    |
|      understand people      +--- http://lobotomy.sf.net         |
|                             +--- http://barberaware.org         |
+--- ---- -                                              -- -  ---+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH8oE53wUck/os3BkRAu7OAJ9eiwtPaVgoXKvTTsmRwEAiBrpSoQCfRzFA
CvYCCjWF6E4bAc0uSmPOSYk=
=xSLF
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]