All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] deadlock for rtdm_mutex
@ 2010-03-18 15:05 Huan Fang
  2010-03-18 15:15 ` Philippe Gerum
  2010-03-18 15:16 ` Jan Kiszka
  0 siblings, 2 replies; 4+ messages in thread
From: Huan Fang @ 2010-03-18 15:05 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hi,

Sometimes I got below assertion failed:

xenomai/skins/rtdm/drvlib.c:1544 (mutex_owner != curr_thread)

Looking into the code,
/* Redefinition to clarify XENO_ASSERT output */
		#define mutex_owner xnsynch_owner(&mutex->synch_base)
		XENO_ASSERT(RTDM, mutex_owner != curr_thread,
			    err = -EDEADLK; goto unlock_out;);

Does it mean if the current owner of mutex is different from the requesting thread, then a -EDEADLK error is returned?(which is not documented in RTDM api doc)
In my case, if one thread tries to lock same mutex twice, the assertion is thrown out as well. Could you please explain a bit how does Xenomai detect deadlock?
Thanks.

Regards,
Huan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-18 17:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 15:05 [Xenomai-help] deadlock for rtdm_mutex Huan Fang
2010-03-18 15:15 ` Philippe Gerum
2010-03-18 15:16 ` Jan Kiszka
2010-03-18 17:28   ` Huan Fang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.