Re: GModule build fixes



Hi Dan,

> > Actually g_thread_sleep should only make the current thread sleep. If
> > that's not the case, it's clearly a bug.
> 
> (You mean "g_usleep", not "g_thread_sleep", which doesn't exist.)

Yes....
 
> OK, looking at the implementation, it's obviously aiming for the
> behavior you describe, so the docs are wrong. (The "pauses the program"
> quote above comes straight from gdate.sgml.)

I fixed the docs.

> > Aha, that of course can happen with (very) bad timing. It means that the
> > started thread wont run for a second. I suspect nanosleep isn't MT-safe
> > on FreeBSD. It is on linux and Solaris.
> 
> *Thwack*. I said "NetBSD", not "FreeBSD". :-)

Doesn't help: I'm stubborn ;-)

> Anyway, you're right. I'm using GNU Pth, which doesn't wrap nanosleep.
> But I think it's reasonable for glib to assume that if you have both
> threads and nanosleep that you have threaded nanosleep, so this is pth's
> bug, not glib's.

Yes, indeed. Actually, as much as I like pth's way of doing threading,
I'm afraid, it wont play well with glib and gtk+.

Bye,
Sebastian
-- 
Sebastian Wilhelmi
mailto:wilhelmi ira uka de
http://goethe.ira.uka.de/~wilhelmi





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