SObjectizer-5 Extra
|
Namespaces | |
details | |
errors | |
Classes | |
struct | default_traits_t |
Default traits for retained message mbox. More... | |
Functions | |
template<typename Traits = default_traits_t, typename Lock_Type = std::mutex> | |
mbox_t | make_mbox (environment_t &env) |
Create an instance of retained message mbox. More... | |
mbox_t so_5::extra::mboxes::retained_msg::make_mbox | ( | environment_t & | env | ) |
Create an instance of retained message mbox.
Simple usage example:
An instance of default implementation retained message mbox will be created. This instance will be protected by std::mutex.
If you want to use retained_mbox in a single-threaded environment without a multithreaded protection then so_5::null_mutex_t (or any similar null-mutex implementation) can be used:
If you want to use your own mutex-like object (with interface which allows to use your mutex-like class with std::lock_guard) then you can do it similar way:
Traits | type with traits of mbox implementation. |
Lock_Type | a type of mutex to be used for protection of retained message mbox content. This must be a DefaultConstructible type with interface which allows to use Lock_Type with std::lock_guard. |
Definition at line 726 of file retained_msg.hpp.