|
SObjectizer
5.8
|
Various stuff related to MPSC event queue implementation and tuning. More...
Namespaces | |
| namespace | impl |
| Implementation details for MPSC event queue stuff. | |
Classes | |
| class | lock_guard_t |
| An analog of std::lock_guard for MPSC queue lock. More... | |
| class | lock_t |
| An interface for lock for MPSC queue. More... | |
| class | queue_params_t |
| Container for storing parameters for MPSC queue. More... | |
| class | unique_lock_t |
| An analog of std::unique_lock for MPSC queue lock. More... | |
Typedefs | |
| using | lock_unique_ptr_t = std::unique_ptr< lock_t > |
| An alias for unique_ptr for lock. | |
| using | lock_factory_t = std::function< lock_unique_ptr_t() > |
| Type of lock factory. | |
Functions | |
| std::chrono::high_resolution_clock::duration | 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 | 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 | combined_lock_factory () |
| Factory for creation of combined queue lock with default waiting time. | |
| SO_5_FUNC lock_factory_t | simple_lock_factory () |
| Factory for creation of very simple implementation based on usage of mutex and condition_variable only. | |
Various stuff related to MPSC event queue implementation and tuning.
| using so_5::disp::mpsc_queue_traits::lock_factory_t = std::function< lock_unique_ptr_t() > |
Type of lock factory.
Definition at line 90 of file mpsc_queue_traits/pub.hpp.
| using so_5::disp::mpsc_queue_traits::lock_unique_ptr_t = std::unique_ptr< lock_t > |
An alias for unique_ptr for lock.
Definition at line 80 of file mpsc_queue_traits/pub.hpp.
|
inline |
Factory for creation of combined queue lock with default waiting time.
Definition at line 140 of file mpsc_queue_traits/pub.hpp.
| 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.
| waiting_time | Max waiting time for waiting on spinlock before switching to mutex. |
Definition at line 205 of file mpsc_queue_traits/pub.cpp.
|
inline |
Default timeout used by combined_lock for waiting on spinlock before switching to mutex-based locking scheme.
Definition at line 102 of file mpsc_queue_traits/pub.hpp.
| 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.
Definition at line 217 of file mpsc_queue_traits/pub.cpp.