Merge branch 'blender-v2.92-release'

This commit is contained in:
2021-01-22 19:30:23 +01:00
4 changed files with 16 additions and 13 deletions

View File

@@ -58,11 +58,6 @@
#include "BLI_utildefines.h"
/* Forward declare tbb::blocked_range for conversion operations. */
namespace tbb {
template<typename Value> class blocked_range;
}
namespace blender {
template<typename T> class Span;
@@ -86,12 +81,6 @@ class IndexRange {
BLI_assert(size >= 0);
}
template<typename T>
constexpr IndexRange(const tbb::blocked_range<T> &range)
: start_(range.begin()), size_(range.size())
{
}
class Iterator {
private:
int64_t current_;

View File

@@ -131,6 +131,12 @@ class TBBTaskGroup : public tbb::task_group {
public:
TBBTaskGroup(TaskPriority priority)
{
# if TBB_INTERFACE_VERSION_MAJOR >= 12
/* TODO: support priorities in TBB 2021, where they are only available as
* part of task arenas, no longer for task groups. Or remove support for
* task priorities if they are no longer useful. */
UNUSED_VARS(priority);
# else
switch (priority) {
case TASK_PRIORITY_LOW:
my_context.set_priority(tbb::priority_low);
@@ -139,6 +145,7 @@ class TBBTaskGroup : public tbb::task_group {
my_context.set_priority(tbb::priority_normal);
break;
}
# endif
}
~TBBTaskGroup()