summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Elliott <elliottc@objectcomputing.com>2022-12-08 07:10:46 -0600
committerChad Elliott <elliottc@objectcomputing.com>2022-12-08 07:10:46 -0600
commit37fe55c3ad443ba5d2bd2a6ecd7060db349151f3 (patch)
treecec85a891bee8cffde3d8553ca9bff4bf06dfcb9
parentd9c8b11d5890465b6d8bd0723e939e531afd0c94 (diff)
downloadATCD-37fe55c3ad443ba5d2bd2a6ecd7060db349151f3.tar.gz
No need to compare the result of ::TryEnterCriticalSection to an explicit value. Doing so causes a warning in Release builds.
-rw-r--r--ACE/ace/OS_NS_Thread.inl2
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/ace/OS_NS_Thread.inl b/ACE/ace/OS_NS_Thread.inl
index 29dbb28ae2a..a50db7e42af 100644
--- a/ACE/ace/OS_NS_Thread.inl
+++ b/ACE/ace/OS_NS_Thread.inl
@@ -3754,7 +3754,7 @@ ACE_OS::thread_mutex_trylock (ACE_thread_mutex_t *m)
# if defined (ACE_HAS_WTHREADS)
# if defined (ACE_HAS_WIN32_TRYLOCK)
BOOL result = ::TryEnterCriticalSection (m);
- if (result == TRUE)
+ if (result)
{
return 0;
}