catch uncaught exception

This commit is contained in:
Dennis Luxen 2014-12-18 16:11:49 +01:00
parent 7e0b19c43d
commit ecff2beafa

View File

@ -93,10 +93,10 @@ void delete_region(const SharedDataType region)
int main(const int argc, const char *argv[])
{
LogPolicy::GetInstance().Unmute();
SharedBarriers barrier;
try
{
SharedBarriers barrier;
#ifdef __linux__
// try to disable swapping on Linux
const bool lock_flags = MCL_CURRENT | MCL_FUTURE;