Public Types | Public Member Functions | Private Attributes | List of all members
util::SimpleThreadSafeQueue< T > Class Template Reference

#include <simple_thread_safe_queue.h>

Public Types

typedef T value_type
 

Public Member Functions

blocking_pop ()
 
util::StatusOr< T > blocking_pop (int wait_ms)
 
void clear ()
 
util::StatusOr< T > pop ()
 
template<typename... Args>
void push (Args &&...args)
 
size_t size ()
 

Private Attributes

std::condition_variable condvar_
 
std::mutex mutex_
 
std::queue< T > queue_
 

Detailed Description

template<typename T>
class util::SimpleThreadSafeQueue< T >

Definition at line 40 of file simple_thread_safe_queue.h.

Member Typedef Documentation

template<typename T>
typedef T util::SimpleThreadSafeQueue< T >::value_type

Definition at line 47 of file simple_thread_safe_queue.h.

Member Function Documentation

template<typename T>
T util::SimpleThreadSafeQueue< T >::blocking_pop ( )
inline

Definition at line 60 of file simple_thread_safe_queue.h.

template<typename T>
util::StatusOr<T> util::SimpleThreadSafeQueue< T >::blocking_pop ( int  wait_ms)
inline

Definition at line 68 of file simple_thread_safe_queue.h.

template<typename T>
void util::SimpleThreadSafeQueue< T >::clear ( )
inline

Definition at line 90 of file simple_thread_safe_queue.h.

template<typename T>
util::StatusOr<T> util::SimpleThreadSafeQueue< T >::pop ( )
inline

Definition at line 80 of file simple_thread_safe_queue.h.

template<typename T>
template<typename... Args>
void util::SimpleThreadSafeQueue< T >::push ( Args &&...  args)
inline

Definition at line 48 of file simple_thread_safe_queue.h.

template<typename T>
size_t util::SimpleThreadSafeQueue< T >::size ( )
inline

Definition at line 55 of file simple_thread_safe_queue.h.

Member Data Documentation

template<typename T>
std::condition_variable util::SimpleThreadSafeQueue< T >::condvar_
private

Definition at line 44 of file simple_thread_safe_queue.h.

template<typename T>
std::mutex util::SimpleThreadSafeQueue< T >::mutex_
private

Definition at line 43 of file simple_thread_safe_queue.h.

template<typename T>
std::queue<T> util::SimpleThreadSafeQueue< T >::queue_
private

Definition at line 42 of file simple_thread_safe_queue.h.


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


gcloud_speech_utils
Author(s):
autogenerated on Wed Jun 5 2019 21:24:09