Skip to content

Commit 38084c3

Browse files
committed
Update comment
1 parent f11815d commit 38084c3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

include/aspl/DoubleBuffer.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ namespace aspl {
5656
//! and pass it to the setter.
5757
//!
5858
//! 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.
59+
//! has move constructor, it can be used in setter.
60+
//!
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.
6164
//!
6265
//! Typical reader looks like the following:
6366
//! @code

0 commit comments

Comments
 (0)