Skip to content

Commit

Permalink
Fixing a name of a configuration constant
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jun 7, 2017
1 parent cbb3bce commit f8e4b2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Expand Up @@ -384,9 +384,8 @@ hpx_option(HPX_WITH_DISABLED_SIGNAL_EXCEPTION_HANDLERS BOOL
"Disables the mechanism that produces debug output for caught signals and unhandled exceptions (default: OFF)"
OFF
ADVANCED)

if(HPX_WITH_DISABLED_SIGNAL_EXCEPTION_HANDLERS)
add_definitions(-DHPX_WITH_DISABLED_SIGNAL_EXCEPTION_HANDLERS)
hpx_add_config_define(HPX_HAVE_DISABLED_SIGNAL_EXCEPTION_HANDLERS)
endif()

## Thread Manager related build options
Expand Down Expand Up @@ -548,7 +547,6 @@ if(HPX_WITH_GOOGLE_PERFTOOLS)
hpx_add_config_define(HPX_HAVE_GOOGLE_PERFTOOLS)
endif()


hpx_option(HPX_WITH_ITTNOTIFY BOOL
"Enable Amplifier (ITT) instrumentation support." OFF CATEGORY "Profiling")

Expand Down
5 changes: 3 additions & 2 deletions src/hpx_init.cpp
Expand Up @@ -1107,8 +1107,7 @@ namespace hpx
shutdown_function_type shutdown, hpx::runtime_mode mode,
bool blocking)
{
int result = 0;
#ifndef HPX_WITH_DISABLED_SIGNAL_EXCEPTION_HANDLERS
#if !defined(HPX_HAVE_DISABLED_SIGNAL_EXCEPTION_HANDLERS)
set_error_handlers();
#endif

Expand All @@ -1128,6 +1127,8 @@ namespace hpx
unsetenv("LC_IDENTIFICATION");
unsetenv("LC_ALL");
#endif

int result = 0;
try {
// make sure the runtime system is not active yet
if (get_runtime_ptr() != nullptr)
Expand Down
8 changes: 4 additions & 4 deletions src/runtime/threads/coroutines/detail/coroutine_impl.cpp
Expand Up @@ -108,21 +108,21 @@ namespace hpx { namespace threads { namespace coroutines { namespace detail
tinfo = boost::current_exception();
this->reset(); // reset functor
}
#ifndef HPX_WITH_DISABLED_SIGNAL_EXCEPTION_HANDLERS
catch (boost::exception const&) {
status = super_type::ctx_exited_abnormally;
tinfo = boost::current_exception();
this->reset();
} catch (std::exception const&) {
}
catch (std::exception const&) {
status = super_type::ctx_exited_abnormally;
tinfo = boost::current_exception();
this->reset();
} catch (...) {
}
catch (...) {
status = super_type::ctx_exited_abnormally;
tinfo = boost::current_exception();
this->reset();
}
#endif

this->do_return(status, std::move(tinfo));

Expand Down

0 comments on commit f8e4b2f

Please sign in to comment.