static held_locks_map& get_lock_map() { if (nullptr == held_locks_.get()) { held_locks_.reset(new held_locks_data()); } HPX_ASSERT(nullptr != held_locks_.get()); return held_locks_.get()->data_; }
static held_locks_map& get_lock_map() { if (NULL == held_locks_.get()) { held_locks_.reset(new held_locks_map()); } BOOST_ASSERT(NULL != held_locks_.get()); return *held_locks_.get(); }
static bool get_lock_enabled() { if (nullptr == held_locks_.get()) { held_locks_.reset(new held_locks_data()); } detail::register_locks::held_locks_data* m = held_locks_.get(); HPX_ASSERT(nullptr != m); return m->enabled_; }
static void set_ignore_all_locks(bool enable) { if (nullptr == held_locks_.get()) { held_locks_.reset(new held_locks_data()); } detail::register_locks::held_locks_data* m = held_locks_.get(); HPX_ASSERT(nullptr != m); m->ignore_all_locks_ = enable; }
static bool get_ignore_all_locks() { if (nullptr == held_locks_.get()) { held_locks_.reset(new held_locks_data()); } detail::register_locks::held_locks_data* m = held_locks_.get(); HPX_ASSERT(nullptr != m); return !m->ignore_all_locks_; }