How to determine the thread holding a mutex?

xxhdx1985126 <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hi, everyone.

I'm trying to debug a problem that appears to be a deadlock. I wonder if I can use gdb to find out which thread is holding a mutex. If so, my work would be much easier, as there are many threads in my program.

Please help me, Thank you:-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.