diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-04-24 12:26:50 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-04-24 12:26:50 +0000 |
commit | 0e9cbcf8efc2f9c521cc26f44b413a59c7d8b085 (patch) | |
tree | 9934ed66906ae156a04ec9cb1530de334db11c8d /cpp/include/IceUtil/StaticMutex.h | |
parent | Bug 947 (diff) | |
download | ice-0e9cbcf8efc2f9c521cc26f44b413a59c7d8b085.tar.bz2 ice-0e9cbcf8efc2f9c521cc26f44b413a59c7d8b085.tar.xz ice-0e9cbcf8efc2f9c521cc26f44b413a59c7d8b085.zip |
Complete fix for bug 947
Diffstat (limited to 'cpp/include/IceUtil/StaticMutex.h')
-rw-r--r-- | cpp/include/IceUtil/StaticMutex.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/include/IceUtil/StaticMutex.h b/cpp/include/IceUtil/StaticMutex.h index d0e6878893e..b901895aef5 100644 --- a/cpp/include/IceUtil/StaticMutex.h +++ b/cpp/include/IceUtil/StaticMutex.h @@ -169,7 +169,7 @@ StaticMutex::tryLock() const if(_mutex->RecursionCount > 1) { LeaveCriticalSection(_mutex); - return false; + throw ThreadLockedException(__FILE__, __LINE__); } return true; } @@ -243,7 +243,7 @@ StaticMutex::tryLock() const { _recursionCount++; unlock(); - return false; + throw ThreadLockedException(__FILE__, __LINE__); } else { |