All of lore.kernel.org
 help / color / mirror / Atom feed
* Sleep while holding a mutex
@ 2022-07-15 16:31 Russell Johnson
  2022-07-16 10:22 ` Philippe Gerum
  0 siblings, 1 reply; 3+ messages in thread
From: Russell Johnson @ 2022-07-15 16:31 UTC (permalink / raw)
  To: xenomai@lists.linux.dev


[-- Attachment #1.1: Type: text/plain, Size: 744 bytes --]

In one of my functions, I lock a mutex, call evl_timedwat_event(), and then
unlock the mutex. Whenever I call the timedwait, I get an error from the EVL
Core saying that there was a sleep while holding a mutex. I was following
the example on [1]. I also noticed under a test at [2] that there is a
comment saying to disable the T_WOLI mode on the thread because there will
be a sleep during a mutex. The test appears to verify the timedwait call. So
do I need to just ignore that error whenever I am using an EVL event? Or do
I have something else going wrong potentially?

 

[1] https://evlproject.org/core/user-api/event/

[2]
https://source.denx.de/Xenomai/xenomai4/libevl/-/blob/next/tests/monitor-eve
nt.c#L40

 

Thanks,

 

Russell

 


[-- Attachment #1.2: Type: text/html, Size: 2687 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 6759 bytes --]

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

end of thread, other threads:[~2022-07-18 16:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-15 16:31 Sleep while holding a mutex Russell Johnson
2022-07-16 10:22 ` Philippe Gerum
2022-07-18 16:28   ` [External] - " Russell Johnson

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.