Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Public Member Functions | |
numa_binding_observer (task_arena *ta, int numa_id, int num_slots) | |
void | on_scheduler_entry (bool) __TBB_override |
Entry notification. More... | |
void | on_scheduler_exit (bool) __TBB_override |
Exit notification. More... | |
![]() | |
task_scheduler_observer (bool local=false) | |
Construct local or global observer in inactive state (observation disabled). More... | |
task_scheduler_observer (task_arena &a) | |
Construct local observer for a given arena in inactive state (observation disabled). More... | |
virtual | ~task_scheduler_observer () |
void | observe (bool state=true) |
Enable or disable observation. More... | |
![]() | |
void __TBB_EXPORTED_METHOD | observe (bool state=true) |
Enable or disable observation. More... | |
bool | is_observing () const |
Returns true if observation is enabled, false otherwise. More... | |
task_scheduler_observer_v3 () | |
Construct observer with observation disabled. More... | |
virtual | ~task_scheduler_observer_v3 () |
Destructor automatically switches observation off if it is enabled. More... | |
Private Attributes | |
int | my_numa_node_id |
numa_affinity_handler | numa_handler |
Definition at line 264 of file tbbbind.cpp.
|
inline |
Definition at line 268 of file tbbbind.cpp.
|
inlinevirtual |
Entry notification.
Invoked from inside observe(true) call and whenever a worker enters the arena this observer is associated with. If a thread is already in the arena when the observer is activated, the entry notification is called before it executes the first stolen task.
Obsolete semantics. For global observers it is called by a thread before the first steal since observation became enabled.
Reimplemented from tbb::internal::task_scheduler_observer_v3.
Definition at line 274 of file tbbbind.cpp.
References tbb::internal::numa_affinity_handler::bind_thread_to_node(), and tbb::this_task_arena::current_thread_index().
|
inlinevirtual |
Exit notification.
Invoked from inside observe(false) call and whenever a worker leaves the arena this observer is associated with.
Obsolete semantics. For global observers it is called by a thread before the first steal since observation became enabled.
Reimplemented from tbb::internal::task_scheduler_observer_v3.
Definition at line 278 of file tbbbind.cpp.
References tbb::this_task_arena::current_thread_index(), and tbb::internal::numa_affinity_handler::restore_previous_affinity_mask().
|
private |
Definition at line 265 of file tbbbind.cpp.
|
private |
Definition at line 266 of file tbbbind.cpp.