SObjectizer
5.5
|
Various traits for MPSC queues. More...
#include <so_5/h/declspec.hpp>
#include <so_5/h/compiler_features.hpp>
#include <functional>
#include <memory>
#include <chrono>
Go to the source code of this file.
Classes | |
class | so_5::disp::mpsc_queue_traits::lock_t |
An interface for lock for MPSC queue. More... | |
class | so_5::disp::mpsc_queue_traits::unique_lock_t |
An analog of std::unique_lock for MPSC queue lock. More... | |
class | so_5::disp::mpsc_queue_traits::lock_guard_t |
An analog of std::lock_guard for MPSC queue lock. More... | |
class | so_5::disp::mpsc_queue_traits::queue_params_t |
Container for storing parameters for MPSC queue. More... | |
Namespaces | |
so_5 | |
Public part of message limit implementation. | |
so_5::disp | |
Event dispatchers. | |
so_5::disp::mpsc_queue_traits | |
Various stuff related to MPSC event queue implementation and tuning. | |
Typedefs | |
using | so_5::disp::mpsc_queue_traits::lock_unique_ptr_t = std::unique_ptr< lock_t > |
An alias for unique_ptr for lock. More... | |
using | so_5::disp::mpsc_queue_traits::lock_factory_t = std::function< lock_unique_ptr_t() > |
Type of lock factory. More... | |
using | so_5::disp::mpsc_queue_traits::params_t = queue_params_t |
Old alias for queue_params for compatibility. More... | |
Functions | |
std::chrono::high_resolution_clock::duration | so_5::disp::mpsc_queue_traits::default_combined_lock_waiting_time () |
Default timeout used by combined_lock for waiting on spinlock before switching to mutex-based locking scheme. More... | |
SO_5_FUNC lock_factory_t | so_5::disp::mpsc_queue_traits::combined_lock_factory ( std::chrono::high_resolution_clock::duration waiting_time) |
Factory for creation of combined queue lock with the specified waiting time. More... | |
lock_factory_t | so_5::disp::mpsc_queue_traits::combined_lock_factory () |
Factory for creation of combined queue lock with default waiting time. More... | |
SO_5_FUNC lock_factory_t | so_5::disp::mpsc_queue_traits::simple_lock_factory () |
Factory for creation of very simple implementation based on usage of mutex and condition_variable only. More... | |
Various traits for MPSC queues.