glib: binary trees & threaded main loops (maybe OT?)



Hi all, 

I'm trying to develop a client/server application, and have two major
questions about the glib. I have found no other place to ask, so I'm
here ... :-)

well, first of all, I want to create three glib main loops in three
different threads. is this possible just with g_main_new(), or do I have
to think about something when doing this?

and, second question, I try to index words ("gtk", "something", "weird",
... ) in a b-tree. now I have found g_tree_insert(), but nothing about
HOW it is inserted? if the string is inserted, how does the tree know
*how long* the string is? :-)

hope someone can help me!


thanks in advance and greetings, 

                axel.



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