Пример #1
0
 void rebind_stack()
 {
   if (m_stack) {
     // just reset the context stack pointer to its initial value at the stack start
     increment_stack_recycle_count();
     int error = HPX_COROUTINE_MAKE_CONTEXT(
         &m_ctx, m_stack, m_stack_size, (void (*)(void*))(funp_), &cb_, NULL);
     HPX_UNUSED(error);
     HPX_ASSERT(error == 0);
   }
 }
Пример #2
0
 void rebind_stack()
 {
     increment_stack_recycle_count();
 }
Пример #3
0
 void rebind_stack() noexcept
 {
     increment_stack_recycle_count();
 }
Пример #4
0
 void rebind_stack() 
 {
     if (ctx_.fc_stack.sp) 
         increment_stack_recycle_count();
 }