|
SObjectizer
5.5
|
Various stuff related to MPMC event queue implementation and tuning. More...
Namespaces | |
| combined_lock | |
| Implementation of combined lock for MPMC event queue. | |
| simple_lock | |
| Implementation of simple lock for MPMC event queue. | |
Classes | |
| class | condition_t |
| An interface for somethine like condition variable for waiting on MPMC queue lock. More... | |
| class | lock_t |
| An interface for lock for MPMC queue. More... | |
| class | queue_params_t |
| Container for storing parameters for MPMC queue. More... | |
Typedefs | |
| using | condition_unique_ptr_t = std::unique_ptr< condition_t > |
| Alias of unique_ptr for condition. More... | |
| 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 MPMC event queue implementation and tuning.
| using so_5::disp::mpmc_queue_traits::condition_unique_ptr_t = typedef std::unique_ptr< condition_t > |
Alias of unique_ptr for condition.
| using so_5::disp::mpmc_queue_traits::lock_factory_t = typedef std::function< lock_unique_ptr_t() > |
Type of lock factory.
| using so_5::disp::mpmc_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::mpmc_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::mpmc_queue_traits::simple_lock_factory | ( | ) |
Factory for creation of very simple implementation based on usage of mutex and condition_variable only.
1.8.14