WebSocket++  0.8.0-dev
C++ websocket client/server library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Types | List of all members
websocketpp::concurrency::none Class Reference

Stub concurrency policy that implements the interface using no-ops. More...

#include <none.hpp>

Public Types

typedef none_impl::fake_mutex mutex_type
 The type of a mutex primitive. More...
 
typedef none_impl::fake_lock_guard scoped_lock_type
 The type of a scoped/RAII lock primitive. More...
 

Detailed Description

Stub concurrency policy that implements the interface using no-ops.

This policy documents the concurrency policy interface using no-ops. It can be used as a reference or base for building a new concurrency policy. It can also be used as is to disable all locking for endpoints used in purely single threaded programs.

Definition at line 60 of file none.hpp.

Member Typedef Documentation

The type of a mutex primitive.

std::mutex is an example.

Definition at line 66 of file none.hpp.

The type of a scoped/RAII lock primitive.

The scoped lock constructor should take a mutex_type as a parameter, acquire that lock, and release it in its destructor. std::lock_guard is an example.

Definition at line 74 of file none.hpp.


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