SObjectizer 5.8
|
Various traits for MPSC queues. More...
#include <so_5/declspec.hpp>
#include <so_5/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 | |
namespace | so_5 |
Private part of message limit implementation. | |
namespace | so_5::disp |
Event dispatchers. | |
namespace | 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. | |
using | so_5::disp::mpsc_queue_traits::lock_factory_t = std::function< lock_unique_ptr_t() > |
Type of lock factory. | |
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. | |
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. | |
lock_factory_t | so_5::disp::mpsc_queue_traits::combined_lock_factory () |
Factory for creation of combined queue lock with default waiting time. | |
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. | |