Skip to content

Commit

Permalink
Small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
eao197 committed Jun 22, 2022
1 parent 85a2b4d commit f23a954
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions dev/mainpage.dox
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*
* \subsection so_5_extra_v1_5_2 v.1.5.2
*
* New type of mbox is introduced: so_5::extra::mboxes::inflight_limit.
*
* New type of mbox is introduced: so_5::extra::mboxes::composite.
*
* New type of mbox is introduced: so_5::extra::mboxes::first_last_subscriber_notification.
Expand Down
4 changes: 4 additions & 0 deletions dev/sample/so_5_extra/samples.dox
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,9 @@
* \example mboxes/composite/simple/main.cpp
*/

/*!
* \example mboxes/inflight_limit/simple/main.cpp
*/

// vim:ft=cpp

6 changes: 3 additions & 3 deletions dev/so_5_extra/mboxes/inflight_limit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ using instances_counter_shptr_t = std::shared_ptr< instances_counter_t >;
*
* - create an instance of counter_incrementer_t;
* - check the counter via value() method;
* - if limit wasn't exeeded then create an appropriate envelope for a message and
* - if limit wasn't exceeded then create an appropriate envelope for a message and
* call do_not_decrement_in_destructor(). In such a case the envelope will
* decrement the number of inflight messages;
* - if limit was exeeded then just stop the operation and the destructor of
* - if limit was exceeded then just stop the operation and the destructor of
* counter_incrementer_t will decrement number of messages automatically.
*
* \since v.1.5.2
Expand Down Expand Up @@ -363,7 +363,7 @@ class actual_mbox_t final
msg_type, message, overlimit_reaction_deep };

// Step 1: increment the counter and check that the limit
// isn't exeeded yet.
// isn't exceeded yet.
counter_incrementer_t incrementer{
outliving_mutable( *m_instances_counter )
};
Expand Down

0 comments on commit f23a954

Please sign in to comment.