libdoip  0.1.0
DoIP (Diagnostics over Internet Protocol) ISO 13400 C++17 Library
ThreadSafeQueue< T > Class Template Reference

#include <ThreadSafeQueue.h>

Public Member Functions

void push (T item)
 
bool pop (T &item, std::chrono::milliseconds timeout=std::chrono::milliseconds(100))
 
void stop ()
 
size_t size () const
 

Detailed Description

template<typename T>
class ThreadSafeQueue< T >

Definition at line 9 of file ThreadSafeQueue.h.

Member Function Documentation

◆ pop()

template<typename T >
bool ThreadSafeQueue< T >::pop ( T &  item,
std::chrono::milliseconds  timeout = std::chrono::milliseconds(100) 
)
inline

Definition at line 26 of file ThreadSafeQueue.h.

◆ push()

template<typename T >
void ThreadSafeQueue< T >::push ( item)
inline

Definition at line 17 of file ThreadSafeQueue.h.

◆ size()

template<typename T >
size_t ThreadSafeQueue< T >::size ( ) const
inline

Definition at line 52 of file ThreadSafeQueue.h.

◆ stop()

template<typename T >
void ThreadSafeQueue< T >::stop ( )
inline

Definition at line 44 of file ThreadSafeQueue.h.


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