fix coverity issue 1121925, Uncaught exception

This commit is contained in:
Dennis Luxen 2013-10-31 13:21:52 +01:00
parent c87c843308
commit 9730526d33

View File

@ -48,10 +48,14 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
int main( const int argc, const char * argv[] ) { int main( const int argc, const char * argv[] ) {
SharedBarriers barrier; SharedBarriers barrier;
boost::interprocess::scoped_lock< try {
boost::interprocess::named_mutex boost::interprocess::scoped_lock<
> pending_lock(barrier.pending_update_mutex); boost::interprocess::named_mutex
> pending_lock(barrier.pending_update_mutex);
} catch(...) {
// hard unlock in case of any exception.
barrier.pending_update_mutex.unlock();
}
try { try {
LogPolicy::GetInstance().Unmute(); LogPolicy::GetInstance().Unmute();
SimpleLogger().Write(logDEBUG) << "Checking input parameters"; SimpleLogger().Write(logDEBUG) << "Checking input parameters";