* [ECOS] cyg_drv_mutex_lock combine with while loop?
@ 2012-10-12 14:30 Philipp Meier
0 siblings, 0 replies; only message in thread
From: Philipp Meier @ 2012-10-12 14:30 UTC (permalink / raw)
To: ecos-discuss
I see in some driver code the following statements:
while(!cyg_drv_mutex_lock(&any_lock));
And I wonder if this might be the source of a deadlock or even the
source of a stack overflow.
Is it a good/secure idea to stay in a while loop when
cyg_drv_mutex_lock() returns false? Or should this be handled as an
exceptional state?
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-12 14:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-12 14:30 [ECOS] cyg_drv_mutex_lock combine with while loop? Philipp Meier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).