Blender V4.3
blender::threading::TaskSizeHints Class Reference

#include <BLI_task_size_hints.hh>

Inherited by blender::threading::detail::TaskSizeHints_AccumulatedLookup, blender::threading::detail::TaskSizeHints_IndividualLookup, and blender::threading::detail::TaskSizeHints_Static.

Public Types

enum class  Type { Static , IndividualLookup , AccumulatedLookup }
 

Public Attributes

Type type
 

Protected Member Functions

 TaskSizeHints (const Type type)
 

Detailed Description

Specifies how large the individual tasks are relative to each other. It's common that all tasks have a very similar size in which case one can just ignore this. However, sometimes tasks have very different sizes and it makes sense for the scheduler to group fewer big tasks and many small tasks together.

Definition at line 25 of file BLI_task_size_hints.hh.

Member Enumeration Documentation

◆ Type

Enumerator
Static 

All tasks have the same size.

IndividualLookup 

All tasks can have different sizes and one has to look up the sizes one by one.

AccumulatedLookup 

All tasks can have different sizes but one can efficiently determine the size of a consecutive range of tasks.

Definition at line 27 of file BLI_task_size_hints.hh.

Constructor & Destructor Documentation

◆ TaskSizeHints()

blender::threading::TaskSizeHints::TaskSizeHints ( const Type type)
inlineprotected

Definition at line 42 of file BLI_task_size_hints.hh.

Member Data Documentation

◆ type

Type blender::threading::TaskSizeHints::type

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