From 1979ce98a2730bb5b5fc87dd4774a8cb144600e3 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Fri, 28 Jul 2023 18:22:20 +0200 Subject: [PATCH] documented BOOST_UNORDERED_DISABLE_REENTRANCY_CHECK --- doc/unordered/concurrent_flat_map.adoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/unordered/concurrent_flat_map.adoc b/doc/unordered/concurrent_flat_map.adoc index fcdc8662..3f669e1b 100644 --- a/doc/unordered/concurrent_flat_map.adoc +++ b/doc/unordered/concurrent_flat_map.adoc @@ -364,6 +364,18 @@ if concurrent outstanding operations on `y` do not access `x` directly or indire --- +=== Configuration Macros + +==== `BOOST_UNORDERED_DISABLE_REENTRANCY_CHECK` + +In debug builds (more precisely, when +link:../../../assert/doc/html/assert.html#boost_assert_is_void[`BOOST_ASSERT_IS_VOID`^] +is not defined), __container reentrancies__ (illegaly invoking an operation on `m` from within +a function visiting elements of `m`) are detected and signalled through `BOOST_ASSERT_MSG`. +When run-time speed is a concern, the feature can be disabled by globally defining +this macro. + + === Constructors ==== Default Constructor