7#ifndef PXR_BASE_WORK_SORT_H
8#define PXR_BASE_WORK_SORT_H
13#include "pxr/base/work/impl.h"
18PXR_NAMESPACE_OPEN_SCOPE
28 PXR_WORK_IMPL_NAMESPACE_USING_DIRECTIVE;
29 WorkImpl_ParallelSort(container);
31 std::sort(container->begin(), container->end());
39template <
typename C,
typename Compare>
45 PXR_WORK_IMPL_NAMESPACE_USING_DIRECTIVE;
46 WorkImpl_ParallelSort(container, comp);
48 std::sort(container->begin(), container->end(), comp);
52PXR_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_...