本文整理汇总了C++中HPX_ASSERT函数的典型用法代码示例。如果您正苦于以下问题:C++ HPX_ASSERT函数的具体用法?C++ HPX_ASSERT怎么用?C++ HPX_ASSERT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了HPX_ASSERT函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: query_sync
/// Query the current value of the accumulator.
///
/// \note This function is fully synchronous.
double query_sync()
{
HPX_ASSERT(this->get_id());
return query_async().get();
}
示例2: save
void save(bool b)
{
HPX_ASSERT(0 == static_cast<int>(b) || 1 == static_cast<int>(b));
save_binary(&b, sizeof(bool));
}
示例3: empty
bool empty() const
{
HPX_ASSERT(messages_.size() == handlers_.size());
return messages_.empty();
}
示例4: get_or_create_thread_tss_data
tss_storage* get_or_create_thread_tss_data()
{
HPX_ASSERT(m_pimpl);
return m_pimpl->get_thread_tss_data(true);
}
示例5: get
Impl & get()
{
HPX_ASSERT(Impl::get_type() == get_type());
return static_cast<impl<Impl>*>(this)->impl_;
}
示例6: get_thread_id
thread_id_repr_type get_thread_id() const
{
HPX_ASSERT(m_pimpl);
return m_pimpl->get_thread_id();
}
示例7: set_thread_data
std::size_t set_thread_data(std::size_t data)
{
HPX_ASSERT(m_pimpl);
return m_pimpl->set_thread_data(data);
}
示例8: HPX_ASSERT
jacobi::row stencil_iterator::get(std::size_t idx)
{
HPX_ASSERT(rows[idx].id);
return rows[idx];
}
示例9: HPX_ASSERT
double operator[](std::size_t i) const
{
HPX_ASSERT(data_);
return data_[i];
}
示例10: HPX_ASSERT
~memory_block_header()
{
// invoke destructor, if needed
HPX_ASSERT(this->managing_object_.destruct());
this->managing_object_.destruct()(this->get_ptr());
}
示例11: set_parcelhandler
void set_parcelhandler(parcelhandler* ph)
{
HPX_ASSERT(ph_ == 0);
ph_ = ph;
}
示例12: ConvertFiberToThread
~prepare_main_thread() noexcept
{
BOOL result = ConvertFiberToThread();
HPX_ASSERT(FALSE != result);
HPX_UNUSED(result);
}
示例13: prepare_main_thread
prepare_main_thread() noexcept
{
LPVOID result = ConvertThreadToFiber(nullptr);
HPX_ASSERT(nullptr != result);
HPX_UNUSED(result);
}
示例14: trampoline
HPX_FORCEINLINE VOID CALLBACK trampoline(LPVOID pv)
{
T* fun = static_cast<T*>(pv);
HPX_ASSERT(fun);
(*fun)();
}
示例15: HPX_ASSERT
hpx::state thread_pool<Scheduler>::get_state(std::size_t num_thread) const
{
HPX_ASSERT(num_thread != std::size_t(-1));
return sched_.get_state(num_thread).load();
}