We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f11815d commit 38084c3Copy full SHA for 38084c3
1 file changed
include/aspl/DoubleBuffer.hpp
@@ -56,8 +56,11 @@ namespace aspl {
56
//! and pass it to the setter.
57
//!
58
//! The value should have public default and copy constructors. If it also
59
-//! has move constructor, it can be used in setter, and then only one copy
60
-//! is needed to update value. Otherwise, two copies are needed.
+//! has move constructor, it can be used in setter.
+//!
61
+//! If the value has non-trivial destructor, before setter returns, it waits
62
+//! until the previously used value is not accessed by readers anymore and
63
+//! invokes destructor for the old value.
64
65
//! Typical reader looks like the following:
66
//! @code
0 commit comments