summaryrefslogtreecommitdiff
path: root/tests/Thread_Mutex_Test.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-07-31 20:00:01 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-07-31 20:00:01 +0000
commit2f42843e0621d701d385d997f3d1de0caf28797b (patch)
treec08b256431890af740da58e19d33535a4b38e288 /tests/Thread_Mutex_Test.cpp
parentbea3569c416be81ada8810b87a7878eaf52ed826 (diff)
downloadATCD-fix_886_fin.tar.gz
This commit was manufactured by cvs2svn to create tag 'fix_886_fin'.fix_886_fin
Diffstat (limited to 'tests/Thread_Mutex_Test.cpp')
-rw-r--r--tests/Thread_Mutex_Test.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/Thread_Mutex_Test.cpp b/tests/Thread_Mutex_Test.cpp
index 8608833745f..e68d16ff1e5 100644
--- a/tests/Thread_Mutex_Test.cpp
+++ b/tests/Thread_Mutex_Test.cpp
@@ -64,10 +64,12 @@ test (void *args)
if (mutex->acquire (timeout) != 0)
{
- if (errno == ETIME)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) = mutex acquisition ")
- ACE_TEXT ("timed out\n")));
+ if (errno == ETIMEDOUT || errno == EBUSY)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("(%P|%t) = mutex acquisition ")
+ ACE_TEXT ("timed out\n")));
+ }
else if (errno == ENOTSUP)
{
#if !defined (ACE_HAS_MUTEX_TIMEOUTS)