|
enum | state_type {
executing,
reexecute,
ready,
allocated,
freed,
recycle
} |
| Enumeration of task states that the scheduler considers. More...
|
|
typedef internal::affinity_id | affinity_id |
| An id as used for specifying affinity. More...
|
|
static internal::allocate_root_proxy | allocate_root () |
| Returns proxy for overloaded new that allocates a root task. More...
|
|
static internal::allocate_root_with_context_proxy | allocate_root (task_group_context &ctx) |
| Returns proxy for overloaded new that allocates a root task associated with user supplied context. More...
|
|
static void | spawn_root_and_wait (task &root) |
| Spawn task allocated by allocate_root, wait for it to complete, and deallocate it. More...
|
|
static void | spawn_root_and_wait (task_list &root_list) |
| Spawn root tasks on list and wait for all of them to finish. More...
|
|
static void | enqueue (task &t) |
| Enqueue task for starvation-resistant execution. More...
|
|
static void | enqueue (task &t, priority_t p) |
| Enqueue task for starvation-resistant execution on the specified priority level. More...
|
|
static void | enqueue (task &t, task_arena &arena, priority_t p=priority_t(0)) |
| Enqueue task in task_arena. More...
|
|
static task &__TBB_EXPORTED_FUNC | self () |
| The innermost task being executed or destroyed by the current thread at the moment. More...
|
|
| task () |
| Default constructor. More...
|
|
Definition at line 809 of file arena.cpp.
task* tbb::interface7::internal::delegated_task::execute |
( |
| ) |
|
|
inlineprivatevirtual |
Should be overridden by derived classes.
Implements tbb::task.
Definition at line 813 of file arena.cpp.
References __TBB_ASSERT, tbb::internal::scheduler_properties::master, tbb::internal::scheduler_state::my_arena, tbb::internal::generic_scheduler::my_dummy_task, tbb::internal::scheduler_state::my_innermost_running_task, tbb::internal::scheduler_state::my_properties, tbb::internal::generic_scheduler::outermost_level(), s, scope, and tbb::internal::scheduler_properties::type.
814 generic_scheduler&
s = *(generic_scheduler*)
prefix().owner;
815 __TBB_ASSERT(s.outermost_level(),
"expected to be enqueued and received on the outermost level");
816 struct outermost_context : internal::no_copy {
818 generic_scheduler &
s;
820 task_group_context * orig_ctx;
821 scheduler_properties orig_props;
823 : t(_t), s(_s), orig_dummy(s.my_dummy_task), orig_props(s.my_properties) {
825 #if __TBB_TASK_GROUP_CONTEXT 826 orig_ctx = t->prefix().context;
827 t->prefix().context = s.my_arena->my_default_ctx;
833 ~outermost_context() {
834 #if __TBB_TASK_GROUP_CONTEXT 836 t->prefix().context = orig_ctx;
838 s.my_properties = orig_props;
839 s.my_dummy_task = orig_dummy;
internal::task_prefix & prefix(internal::version_tag *=NULL) const
Get reference to corresponding task_prefix.
task()
Default constructor.
void const char const char int ITT_FORMAT __itt_group_sync s
#define __TBB_ASSERT(predicate, comment)
No-op version of __TBB_ASSERT.
internal::delegate_base & my_delegate
delegated_task(internal::delegate_base &d, concurrent_monitor &s, task *t)
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type size_t void ITT_FORMAT p const __itt_domain __itt_id __itt_string_handle const wchar_t size_t ITT_FORMAT lu const __itt_domain __itt_id __itt_relation __itt_id ITT_FORMAT p const wchar_t int ITT_FORMAT __itt_group_mark d __itt_event ITT_FORMAT __itt_group_mark d void const wchar_t const wchar_t int ITT_FORMAT __itt_group_sync __itt_group_fsync x void const wchar_t int const wchar_t int int ITT_FORMAT __itt_group_sync __itt_group_fsync x void ITT_FORMAT __itt_group_sync __itt_group_fsync p void ITT_FORMAT __itt_group_sync __itt_group_fsync p void size_t ITT_FORMAT lu no args __itt_obj_prop_t __itt_obj_state_t ITT_FORMAT d const char ITT_FORMAT s __itt_frame ITT_FORMAT p const char const char ITT_FORMAT s __itt_counter ITT_FORMAT p __itt_counter unsigned long long ITT_FORMAT lu const wchar_t ITT_FORMAT S __itt_mark_type const wchar_t ITT_FORMAT S __itt_mark_type const char ITT_FORMAT s __itt_mark_type ITT_FORMAT d __itt_caller ITT_FORMAT p __itt_caller ITT_FORMAT p no args const __itt_domain __itt_clock_domain unsigned long long __itt_id ITT_FORMAT lu const __itt_domain __itt_clock_domain unsigned long long __itt_id __itt_id void ITT_FORMAT p const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_clock_domain unsigned long long __itt_id __itt_string_handle __itt_scope scope