SObjectizer-5 Extra
|
Namespaces | |
namespace | errors |
Functions | |
template<typename Lock_Type = std::mutex> | |
mbox_t | make_mbox (so_5::environment_t &env) |
Factory function for creation of a new instance of unique_subscribers mbox. | |
|
nodiscard |
Factory function for creation of a new instance of unique_subscribers mbox.
Usage examples:
Create a mbox with std::mutex as Lock_Type (this mbox can safely be used in multi-threaded environments):
Create a mbox with so_5::null_mutex_t as Lock_Type (this mbox can only be used in single-threaded environments):
Lock_Type | type of lock to be used for thread safety. It can be std::mutex or so_5::null_mutex_t (or any other type which can be used with std::lock_quard). |
Definition at line 100 of file unique_subscribers.hpp.