Skip to content

Commit

Permalink
update docs regarding undefined behavior when using multiple z_bytes_…
Browse files Browse the repository at this point in the history
…writers
  • Loading branch information
DenisBiryukov91 committed Sep 13, 2024
1 parent 1a50f9f commit 99433a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/zenoh/api/bytes.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ class Bytes : public Owned<::z_owned_bytes_t> {

/// @brief Create data writer.
///
/// It is the user responsibility to ensure that there is at most one active writer at
/// a given moment of time for a given ``Bytes`` instance.
/// @note Creating another writer, for the same ``Bytes`` instance, while previous one is still in use is undefined
/// behaviour.
/// @return writer instance.
Writer writer() {
return interop::into_copyable_cpp_obj<Writer>(::z_bytes_get_writer(interop::as_loaned_c_ptr(*this)));
Expand Down

0 comments on commit 99433a8

Please sign in to comment.