Re: Glib mutex doesn't work on Windows

2010-12-17 Thread Chris Vine
On Fri, 17 Dec 2010 18:30:28 +0100 (CET) Michael T. wrote: > > That is not of itself an error, but it invites the question > > whether, for example, he has called g_thread_init(). > > Yeah, you're right. I called the test function before calling > gtk_init(), which also takes care of the g_thread

Re: Glib mutex doesn't work on Windows

2010-12-17 Thread Michael T .
> One suspicious feature is that his test > case for GMutex starts a thread using the windows API rather than glib's > API. This is not a problem because glib's API is in this case only a wrapper around Win API. > That is not of itself an error, but it invites the question > whether, for exampl

g_string_assign(str, ""); vs. g_string_truncate(str, 0)

2010-12-17 Thread Holger Freyther
Hi all, I have a small Glib performance question. From my microbenchmark it is obvious that g_string_truncate is faster in empty and non-empty string case. Is there any reason one would like to use g_string_assign(str, "")? Slightly related to that. Did anyone ever create a repository of SystemTa