<2002> 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | <2002> 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | POSIX recursive mutex |
From: | Marty Kraimer <[email protected]> |
To: | Jeff Hill <[email protected]>, "Johnson, Andrew N." <[email protected]>, [email protected] |
Date: | Mon, 02 Dec 2002 15:26:46 -0600 |
timeleft = timeout; while(timeleft>0.0) { if(pthread_mutex_trylock(...)==success) break; epicsThreadSleep(shortTime); timeleft -= shortTime; } I am not bsure this is a good idea. What do you think? Marty