#include <task_scheduler_observer.h>
|
intptr_t | my_context_tag |
| contains task_arena pointer or tag indicating local or global semantics of the observer More...
|
|
|
static const intptr_t | v6_trait = (intptr_t)((~(uintptr_t)0 >> 1) + 1) |
|
Definition at line 92 of file task_scheduler_observer.h.
◆ anonymous enum
◆ task_scheduler_observer() [1/2]
tbb::interface6::task_scheduler_observer::task_scheduler_observer |
( |
bool |
local = false | ) |
|
|
inlineexplicit |
Construct local or global observer in inactive state (observation disabled).
For a local observer entry/exit notifications are invoked whenever a worker thread joins/leaves the arena of the observer's owner thread. 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. TODO: Obsolete. Global observer semantics is obsolete as it violates master thread isolation guarantees and is not composable. Thus the current default behavior of the constructor is obsolete too and will be changed in one of the future versions of the library.
Definition at line 117 of file task_scheduler_observer.h.
References __TBB_ASSERT_EX.
118 #if __TBB_ARENA_OBSERVER intptr_t my_context_tag
contains task_arena pointer or tag indicating local or global semantics of the observer ...
#define __TBB_ASSERT_EX(predicate, comment)
"Extended" version is useful to suppress warnings if a variable is only used with an assert ...
◆ task_scheduler_observer() [2/2]
tbb::interface6::task_scheduler_observer::task_scheduler_observer |
( |
task_arena & |
a | ) |
|
|
inlineexplicit |
Construct local observer for a given arena in inactive state (observation disabled).
entry/exit notifications are invoked whenever a thread joins/leaves arena. 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.
Definition at line 131 of file task_scheduler_observer.h.
intptr_t my_context_tag
contains task_arena pointer or tag indicating local or global semantics of the observer ...
◆ ~task_scheduler_observer()
virtual tbb::interface6::task_scheduler_observer::~task_scheduler_observer |
( |
| ) |
|
|
inlinevirtual |
◆ observe()
void tbb::interface6::task_scheduler_observer::observe |
( |
bool |
state = true | ) |
|
|
inline |
◆ internal::observer_list
friend class internal::observer_list |
|
friend |
◆ internal::observer_proxy
friend class internal::observer_proxy |
|
friend |
◆ internal::task_scheduler_observer_v3
◆ my_context_tag
intptr_t tbb::interface6::task_scheduler_observer::my_context_tag |
|
private |
contains task_arena pointer or tag indicating local or global semantics of the observer
Definition at line 103 of file task_scheduler_observer.h.
◆ v6_trait
const intptr_t tbb::interface6::task_scheduler_observer::v6_trait = (intptr_t)((~(uintptr_t)0 >> 1) + 1) |
|
staticprivate |
Negative numbers with the largest absolute value to minimize probability of coincidence in case of a bug in busy count usage.
Definition at line 100 of file task_scheduler_observer.h.
The documentation for this class was generated from the following file: