Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::internal::scheduler_state Struct Reference

#include <scheduler.h>

Inheritance diagram for tbb::internal::scheduler_state:
Collaboration diagram for tbb::internal::scheduler_state:

Public Attributes

size_t my_arena_index
 Index of the arena slot the scheduler occupies now, or occupied last time. More...
 
arena_slotmy_arena_slot
 Pointer to the slot in the arena we own at the moment. More...
 
arenamy_arena
 The arena that I own (if master) or am servicing at the moment (if worker) More...
 
taskmy_innermost_running_task
 Innermost task whose task::execute() is running. A dummy task on the outermost level. More...
 
mail_inbox my_inbox
 
affinity_id my_affinity_id
 The mailbox id assigned to this scheduler. More...
 
scheduler_properties my_properties
 

Detailed Description

Definition at line 77 of file scheduler.h.

Member Data Documentation

◆ my_affinity_id

affinity_id tbb::internal::scheduler_state::my_affinity_id

The mailbox id assigned to this scheduler.

The id is assigned upon first entry into the arena. TODO: how are id's being garbage collected? TODO: master thread may enter arena and leave and then reenter. We want to give it the same affinity_id upon reentry, if practical. TODO: investigate if it makes sense to merge this field into scheduler_properties.

Definition at line 99 of file scheduler.h.

Referenced by tbb::internal::generic_scheduler::attach_mailbox(), tbb::internal::generic_scheduler::get_mailbox_task(), tbb::internal::generic_scheduler::get_task(), tbb::internal::generic_scheduler::prepare_for_spawning(), and tbb::internal::generic_scheduler::steal_task().

◆ my_arena

◆ my_arena_index

◆ my_arena_slot

◆ my_inbox

◆ my_innermost_running_task

◆ my_properties


The documentation for this struct was generated from the following file:

Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.