Lines Matching refs:nullptr

82         thread_data* my_thread_data{ nullptr };
117 __TBB_ASSERT(arg != nullptr, nullptr); in co_context()
125 __TBB_ASSERT(1 << my_state & (1 << co_suspended | 1 << co_executing), nullptr); in ~co_context()
137 __TBB_ASSERT(my_state == co_executing, nullptr); in resume()
138 __TBB_ASSERT(target.my_state == co_suspended, nullptr); in resume()
146 __TBB_ASSERT(my_state == co_executing, nullptr); in resume()
178 __TBB_ASSERT(c.my_thread_data == nullptr, nullptr); in coroutine_thread_func()
182 data.second = nullptr; in coroutine_thread_func()
187 __TBB_ASSERT(c.my_thread_data != nullptr, nullptr); in coroutine_thread_func()
198 __TBB_ASSERT(sizeof(addr) == 8 || hi == 0, nullptr); in coroutine_thread_func()
202 return nullptr; in coroutine_thread_func()
210 …= (HANDLE)_beginthreadex(nullptr, unsigned(stack_size), coroutine_thread_func, &data, STACK_SIZE_P… in create_coroutine()
226 c.my_condvar.wait(lock, [&arg] { return arg == nullptr; }); in create_coroutine()
243 prev_coroutine.my_thread_data = nullptr; in swap_coroutine()
250 … __TBB_ASSERT(new_coroutine.my_thread_data == nullptr, "The sleeping thread should not be active"); in swap_coroutine()
259 __TBB_ASSERT(governor::get_thread_data() != nullptr, nullptr); in swap_coroutine()
266 __TBB_ASSERT(c.my_thread_data == nullptr, "The sleeping thread should not be active"); in destroy_coroutine()
275 check(pthread_join(c.my_thread, nullptr), "pthread_join has failed"); in destroy_coroutine()
280 __TBB_ASSERT(arg, nullptr); in create_coroutine()
282 __TBB_ASSERT(c, nullptr); in create_coroutine()
287 ConvertThreadToFiberEx(nullptr, FIBER_FLAG_FLOAT_SWITCH); in current_coroutine()
288 __TBB_ASSERT(c, nullptr); in current_coroutine()
293 ConvertThreadToFiberEx(nullptr, FIBER_FLAG_FLOAT_SWITCH); in swap_coroutine()
295 __TBB_ASSERT(new_coroutine, nullptr); in swap_coroutine()
297 __TBB_ASSERT(prev_coroutine, nullptr); in swap_coroutine()
302 __TBB_ASSERT(c, nullptr); in destroy_coroutine()
313 …std::uintptr_t stack_ptr = (std::uintptr_t)mmap(nullptr, protected_stack_size, PROT_NONE, MAP_PRIV… in create_coroutine()
314 __TBB_ASSERT((void*)stack_ptr != MAP_FAILED, nullptr); in create_coroutine()
318 __TBB_ASSERT_EX(!err, nullptr); in create_coroutine()
325 __TBB_ASSERT_EX(!err, nullptr); in create_coroutine()
327 c.my_context.uc_link = nullptr; in create_coroutine()
338 __TBB_ASSERT(sizeof(addr) == 8 || hi == 0, nullptr); in create_coroutine()
345 __TBB_ASSERT_EX(!err, nullptr); in current_coroutine()
350 __TBB_ASSERT_EX(!err, nullptr); in swap_coroutine()
358 c.my_stack = nullptr; in destroy_coroutine()