SObjectizer-5 Extra
Loading...
Searching...
No Matches
so_5::extra::mboxes::round_robin Namespace Reference

Namespaces

namespace  details
 
namespace  errors
 

Functions

template<typename Lock_Type = std::mutex>
mbox_t make_mbox (environment_t &env)
 Create an implementation of round-robin mbox.
 

Function Documentation

◆ make_mbox()

template<typename Lock_Type = std::mutex>
mbox_t so_5::extra::mboxes::round_robin::make_mbox ( environment_t & env)

Create an implementation of round-robin mbox.

Usage example:

so_5::environment_t & env = ...;
const so_5::mbox_t rrmbox = so_5::extra::mboxes::round_robin::make_mbox<>( env );
...
so_5::send< some_message >( rrmbox, ... );
mbox_t make_mbox(environment_t &env)
Create an implementation of round-robin mbox.
Template Parameters
Lock_Typetype of lock to be used for thread safety.
Examples
mboxes/inflight_limit/simple/main.cpp, mboxes/round_robin/advanced/main.cpp, and mboxes/round_robin/simple/main.cpp.

Definition at line 396 of file round_robin.hpp.