|
SObjectizer
5.7
|
Various stuff related to MPSC event queue implementation and tuning. More...
Namespaces | |
| 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. More... | |
| using | lock_factory_t = std::function< lock_unique_ptr_t() > |
| Type of lock factory. More... | |
Functions | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| lock_factory_t | combined_lock_factory () |
| Factory for creation of combined queue lock with default waiting time. More... | |
Various stuff related to MPSC event queue implementation and tuning.
| using so_5::disp::mpsc_queue_traits::lock_factory_t = typedef std::function< lock_unique_ptr_t() > |
Type of lock factory.
| using so_5::disp::mpsc_queue_traits::lock_unique_ptr_t = typedef std::unique_ptr< lock_t > |
An alias for unique_ptr for lock.
|
inline |
Factory for creation of combined queue lock with default waiting time.
| 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. |
|
inline |
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::simple_lock_factory | ( | ) |
Factory for creation of very simple implementation based on usage of mutex and condition_variable only.
1.8.14