Example #1
0
            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_;
            }
Example #2
0
        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();
        }
Example #3
0
            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_;
            }
Example #4
0
            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;
            }
Example #5
0
            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_;
            }