Skip to contentSkip to conversation

Which thread holds a Mutex?

Xenomai-help Stephan Zimmermann 2 participants 3 messages Apr 4, 2007

lore
Share & tools
lore
#0 lore raw

Hi,
I see a deadlock occur every now and than in my app. Is there a way to tell which thread is actually holding a lock from a normal userspace app? rt_mutex_inquire() only tells me that it is locked, but not who is holding it.

Tia, Stephan

#1 lore raw
Quoted 6 lines · Stephan Zimmermann

Hi,
I see a deadlock occur every now and than in my app. Is there a way to tell which thread is actually holding a lock from a normal userspace app? rt_mutex_inquire() only tells me that it is locked, but not who is holding it.

/proc/xenomai/registry/native/mutexes/...

Quoted 6 lines

Tia, Stephan

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#2 lore raw
Quoted 6 lines · Philippe Gerum
Quoted 3 lines · Stephan Zimmermann

Hi,
I see a deadlock occur every now and than in my app. Is there a way to tell which thread is actually holding a lock from a normal userspace app? rt_mutex_inquire() only tells me that it is locked, but not who is holding it.

/proc/xenomai/registry/native/mutexes/...

Ouch!

Quoted 6 lines
Quoted 6 lines

Tia, Stephan

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help