Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::internal::control_storage Class Referenceabstract
Inheritance diagram for tbb::internal::control_storage:
Collaboration diagram for tbb::internal::control_storage:

Protected Member Functions

virtual size_t default_value () const =0
 
virtual void apply_active () const
 
virtual bool is_first_arg_preferred (size_t a, size_t b) const
 
virtual size_t active_value () const
 

Protected Attributes

size_t my_active_value
 
atomic< global_control * > my_head
 
spin_mutex my_list_mutex
 

Friends

class tbb::interface9::global_control
 

Detailed Description

Definition at line 429 of file tbb_main.cpp.

Member Function Documentation

◆ active_value()

virtual size_t tbb::internal::control_storage::active_value ( ) const
inlineprotectedvirtual

Reimplemented in tbb::internal::allowed_parallelism_control.

Definition at line 441 of file tbb_main.cpp.

Referenced by tbb::interface9::global_control::active_value().

441  {
443  }
atomic< global_control * > my_head
Definition: tbb_main.cpp:433
virtual size_t default_value() const =0
Here is the caller graph for this function:

◆ apply_active()

virtual void tbb::internal::control_storage::apply_active ( ) const
inlineprotectedvirtual

Reimplemented in tbb::internal::stack_size_control, and tbb::internal::allowed_parallelism_control.

Definition at line 437 of file tbb_main.cpp.

Referenced by tbb::interface9::global_control::internal_create(), and tbb::interface9::global_control::internal_destroy().

437 {}
Here is the caller graph for this function:

◆ default_value()

virtual size_t tbb::internal::control_storage::default_value ( ) const
protectedpure virtual

Implemented in tbb::internal::stack_size_control, and tbb::internal::allowed_parallelism_control.

Referenced by tbb::interface9::global_control::internal_destroy().

Here is the caller graph for this function:

◆ is_first_arg_preferred()

virtual bool tbb::internal::control_storage::is_first_arg_preferred ( size_t  a,
size_t  b 
) const
inlineprotectedvirtual

Reimplemented in tbb::internal::allowed_parallelism_control.

Definition at line 438 of file tbb_main.cpp.

Referenced by tbb::interface9::global_control::internal_create(), and tbb::interface9::global_control::internal_destroy().

438  {
439  return a>b; // prefer max by default
440  }
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ tbb::interface9::global_control

friend class tbb::interface9::global_control
friend

Definition at line 430 of file tbb_main.cpp.

Member Data Documentation

◆ my_active_value

size_t tbb::internal::control_storage::my_active_value
protected

◆ my_head

atomic<global_control*> tbb::internal::control_storage::my_head
protected

◆ my_list_mutex

spin_mutex tbb::internal::control_storage::my_list_mutex
protected

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

Copyright © 2005-2019 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.