Re: pthread_mutex_lock call hangs
FWIW, you can create PTHREAD_MUTEX_ERRORCHECK_NP mutexes (see the man
pages for pthread_mutexattr_init and pthread_mutex_init) to have the
'thread trying to lock the same mutex twice' case detected.
This will help find 'duh' errors in one thread, not solve real deadlocks
(for those, I find it's a matter of looking at all the threads under gdb
and finding which code sections are holding which locks in which threads).
-- Elliot
"I have enough youth; let's start looking for the Fountain of Sense."
_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list
[Kernel Newbies]
[Red Hat General]
[Fedora]
[Red Hat Install]
[Linux Kernel Development]
[Yosemite News]