Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Private Attributes | Static Private Attributes
tbb::auto_partitioner::partition_type Class Reference
Inheritance diagram for tbb::auto_partitioner::partition_type:

List of all members.

Public Member Functions

 partition_type (const auto_partitioner &)
 partition_type (partition_type &pt, split)
 partition_type (const auto_partitioner &)
 partition_type (partition_type &pt, split)
bool should_execute_range (const task &t)
bool should_execute_range (const task &t)

Private Attributes

size_t num_chunks

Static Private Attributes

static const size_t VICTIM_CHUNKS = 4

Detailed Description

Definition at line 114 of file Include/tbb/partitioner.h.


Constructor & Destructor Documentation

tbb::auto_partitioner::partition_type::partition_type ( const auto_partitioner ) [inline]

Definition at line 123 of file Include/tbb/partitioner.h.

: num_chunks(internal::get_initial_auto_partitioner_divisor()) {}
tbb::auto_partitioner::partition_type::partition_type ( partition_type pt,
split   
) [inline]

Definition at line 124 of file Include/tbb/partitioner.h.

References num_chunks.

                                                    {
            num_chunks = pt.num_chunks /= 2u;
        }
tbb::auto_partitioner::partition_type::partition_type ( const auto_partitioner ) [inline]

Definition at line 123 of file Third Party Tech/TBB/tbb30_20100406oss_win/tbb30_20100406oss/include/tbb/partitioner.h.

: num_chunks(internal::get_initial_auto_partitioner_divisor()) {}
tbb::auto_partitioner::partition_type::partition_type ( partition_type pt,
split   
) [inline]

Member Function Documentation

bool tbb::auto_partitioner::partition_type::should_execute_range ( const task t) [inline]

Definition at line 118 of file Include/tbb/partitioner.h.

References tbb::task::is_stolen_task(), num_chunks, and VICTIM_CHUNKS.

                                                 {
            if( num_chunks<VICTIM_CHUNKS && t.is_stolen_task() )
                num_chunks = VICTIM_CHUNKS;
            return num_chunks==1;
        }
bool tbb::auto_partitioner::partition_type::should_execute_range ( const task t) [inline]

Member Data Documentation

Definition at line 115 of file Include/tbb/partitioner.h.

Referenced by partition_type(), and should_execute_range().

static const size_t tbb::auto_partitioner::partition_type::VICTIM_CHUNKS = 4 [static, private]

Definition at line 116 of file Include/tbb/partitioner.h.

Referenced by should_execute_range().


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net