Derecho  0.9
Distributed systems toolkit for RDMA
Classes | Public Member Functions | Private Types | Private Attributes | List of all members
derecho::LockedQueue< T > Class Template Reference

A little helper class that implements a threadsafe queue by requiring all clients to lock a mutex before accessing the queue. More...

#include <view_manager.hpp>

Classes

struct  LockedListAccess
 

Public Member Functions

LockedListAccess locked ()
 

Private Types

using unique_lock_t = std::unique_lock< std::mutex >
 

Private Attributes

std::mutex mutex
 
std::list< T > underlying_list
 

Detailed Description

template<typename T>
class derecho::LockedQueue< T >

A little helper class that implements a threadsafe queue by requiring all clients to lock a mutex before accessing the queue.

Definition at line 45 of file view_manager.hpp.

Member Typedef Documentation

◆ unique_lock_t

template<typename T>
using derecho::LockedQueue< T >::unique_lock_t = std::unique_lock<std::mutex>
private

Definition at line 47 of file view_manager.hpp.

Member Function Documentation

◆ locked()

template<typename T>
LockedListAccess derecho::LockedQueue< T >::locked ( )
inline

Definition at line 60 of file view_manager.hpp.

Member Data Documentation

◆ mutex

template<typename T>
std::mutex derecho::LockedQueue< T >::mutex
private

Definition at line 48 of file view_manager.hpp.

◆ underlying_list

template<typename T>
std::list<T> derecho::LockedQueue< T >::underlying_list
private

Definition at line 49 of file view_manager.hpp.


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