11 #ifndef __UT_CONCURRENTPRIORITYQUEUE_H_INCLUDED__
12 #define __UT_CONCURRENTPRIORITYQUEUE_H_INCLUDED__
15 #include <tbb/concurrent_priority_queue.h>
21 #define UT_ConcurrentPriorityQueue tbb::concurrent_priority_queue
23 template<
typename T,
typename A>
33 mem += queue.size() *
sizeof(
T);
38 #endif // __UT_CONCURRENTPRIORITYQUEUE_H_INCLUDED__
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the queue
int64 UTgetMemoryUsage(const UT_ConcurrentPriorityQueue< T, A > &queue, const bool inclusive)