Strange GMutex behaviur

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Strange GMutex behaviur

Luka Napotnik
Hello.
 
I have a thread where the mutex for a GHashTable is locked/unlocked very
intensely. It works for a short while but then the thread locks
completely and if I profile my program I see that the programs resides
in kernel for an unusual long period. Any ideas?

Greets,
Luka


_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: Strange GMutex behaviur

Tim-Philipp Müller
On Thu, 2009-04-09 at 09:33 +0200, Luka Napotnik wrote:

Hi,

> I have a thread where the mutex for a GHashTable is locked/unlocked very
> intensely. It works for a short while but then the thread locks
> completely and if I profile my program I see that the programs resides
> in kernel for an unusual long period. Any ideas?

Do you have a small sample program that reproduces the problem?

What are the stack traces of all threads when it hangs? (in gdb: thread
apply all bt)

Cheers
 -Tim


_______________________________________________
gtk-app-devel-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list