11 #ifndef __UT_CONCURRENTQUEUE_H_INCLUDED__
12 #define __UT_CONCURRENTQUEUE_H_INCLUDED__
15 #include <tbb/concurrent_queue.h>
21 #define UT_ConcurrentQueue tbb::concurrent_queue
23 template<
typename T,
typename A>
33 mem += queue.unsafe_size()*
sizeof(
T);
38 #endif // __UT_CONCURRENTQUEUE_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_ConcurrentQueue< T, A > &queue, const bool inclusive)