Lines Matching refs:result
32 d1::task* result = task_pool_ptr[T]; in get_task_impl() local
33 __TBB_ASSERT(!is_poisoned( result ), "The poisoned task is going to be processed"); in get_task_impl()
35 if (!result) { in get_task_impl()
38 bool omit = isolation != no_isolation && isolation != task_accessor::isolation(*result); in get_task_impl()
39 if (!omit && !task_accessor::is_proxy_task(*result)) { in get_task_impl()
40 return result; in get_task_impl()
46 task_proxy& tp = static_cast<task_proxy&>(*result); in get_task_impl()
67 d1::task* result = nullptr; in get_task() local
71 __TBB_ASSERT( !result, nullptr ); in get_task()
99 result = get_task_impl( T, ed, tasks_omitted, isolation ); in get_task()
100 if ( result ) { in get_task()
108 } while ( !result && !task_pool_empty ); in get_task()
116 if ( result ) { in get_task()
134 __TBB_ASSERT( result, nullptr ); in get_task()
144 __TBB_ASSERT( result || tasks_omitted || is_quiescent_local_task_pool_reset(), nullptr ); in get_task()
145 return result; in get_task()
153 d1::task* result = nullptr; in steal_task() local
165 __TBB_ASSERT( !result, nullptr ); in steal_task()
168 result = victim_pool[H-1]; in steal_task()
169 __TBB_ASSERT( !is_poisoned( result ), nullptr ); in steal_task()
171 if (result) { in steal_task()
172 if (isolation == no_isolation || isolation == task_accessor::isolation(*result)) { in steal_task()
173 if (!task_accessor::is_proxy_task(*result)) { in steal_task()
176 task_proxy& tp = *static_cast<task_proxy*>(result); in steal_task()
183 result = nullptr; in steal_task()
191 } while (!result); in steal_task()
192 __TBB_ASSERT( result, nullptr ); in steal_task()
213 return result; in steal_task()