7#ifndef PXR_BASE_WORK_SORT_H
8#define PXR_BASE_WORK_SORT_H
15#include <tbb/parallel_sort.h>
18PXR_NAMESPACE_OPEN_SCOPE
28 tbb::parallel_sort(container->begin(), container->end());
30 std::sort(container->begin(), container->end());
38template <
typename C,
typename Compare>
44 tbb::parallel_sort(container->begin(), container->end(), comp);
46 std::sort(container->begin(), container->end(), comp);
50PXR_NAMESPACE_CLOSE_SCOPE
void WorkParallelSort(C *container)
Sorts in-place a container that provides begin() and end() methods.
WORK_API bool WorkHasConcurrency()
Return true if WorkGetPhysicalConcurrencyLimit() returns a number greater than 1 and PXR_WORK_THREAD_...