示例#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_;
            }
示例#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();
        }
示例#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_;
            }
示例#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;
            }
示例#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_;
            }
示例#6
0
 static void reset_held_lock_data()
 {
     held_locks_.reset();
 }