Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tc::autotune::ConcurrentQueue< T > Class Template Reference

#include <concurrent_queue.h>

Public Member Functions

void enqueue (T t)
 
dequeueWaitFor (std::chrono::steady_clock::duration)
 
bool empty () const
 
size_t size () const
 

Private Attributes

std::mutex mtx_
 
std::condition_variable cv_
 
std::queue< T > queue_
 

Detailed Description

template<typename T>
class tc::autotune::ConcurrentQueue< T >

A basic concurrent queue synchronized with a lock. We will never need a more intricate implementation for anything related to compilation and autotuning.

Member Function Documentation

template<typename T >
T tc::autotune::ConcurrentQueue< T >::dequeueWaitFor ( std::chrono::steady_clock::duration  d)
template<typename T >
bool tc::autotune::ConcurrentQueue< T >::empty ( ) const
template<typename T >
void tc::autotune::ConcurrentQueue< T >::enqueue ( t)
template<typename T >
size_t tc::autotune::ConcurrentQueue< T >::size ( ) const

Member Data Documentation

template<typename T >
std::condition_variable tc::autotune::ConcurrentQueue< T >::cv_
private
template<typename T >
std::mutex tc::autotune::ConcurrentQueue< T >::mtx_
mutableprivate
template<typename T >
std::queue<T> tc::autotune::ConcurrentQueue< T >::queue_
private

The documentation for this class was generated from the following files: