ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Protected Attributes | List of all members
ThreadSafeQueue< _t > Class Template Reference

cross platform thread safe queue More...

#include <ThreadSafeQueue.h>

Inheritance diagram for ThreadSafeQueue< _t >:
Inheritance graph
Collaboration diagram for ThreadSafeQueue< _t >:
Collaboration graph

Public Member Functions

 ThreadSafeQueue ()
 
 ThreadSafeQueue (const ThreadSafeQueue &q)
 
 ~ThreadSafeQueue ()
 
void EnterCriticalSection ()
 
void LeaveCriticalSection ()
 
void push (const _t &x)
 
_t pop ()
 
bool empty ()
 

Protected Attributes

std::mutex mutex_
 
- Protected Attributes inherited from std::queue< T >
elements
 STL member. More...
 

Detailed Description

template<typename _t>
class ThreadSafeQueue< _t >

cross platform thread safe queue

Definition at line 36 of file ThreadSafeQueue.h.

Constructor & Destructor Documentation

template<typename _t>
ThreadSafeQueue< _t >::ThreadSafeQueue ( )

Definition at line 40 of file ThreadSafeQueue.h.

template<typename _t>
ThreadSafeQueue< _t >::ThreadSafeQueue ( const ThreadSafeQueue< _t > &  q)

Definition at line 42 of file ThreadSafeQueue.h.

template<typename _t>
ThreadSafeQueue< _t >::~ThreadSafeQueue ( )

Definition at line 44 of file ThreadSafeQueue.h.

Member Function Documentation

template<typename _t>
bool ThreadSafeQueue< _t >::empty ( )

Definition at line 63 of file ThreadSafeQueue.h.

template<typename _t>
void ThreadSafeQueue< _t >::EnterCriticalSection ( )

Definition at line 46 of file ThreadSafeQueue.h.

template<typename _t>
void ThreadSafeQueue< _t >::LeaveCriticalSection ( )

Definition at line 49 of file ThreadSafeQueue.h.

template<typename _t>
_t ThreadSafeQueue< _t >::pop ( )

Definition at line 57 of file ThreadSafeQueue.h.

template<typename _t>
void ThreadSafeQueue< _t >::push ( const _t &  x)

Definition at line 53 of file ThreadSafeQueue.h.

Member Data Documentation

template<typename _t>
std::mutex ThreadSafeQueue< _t >::mutex_
protected

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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)