Skip to content

Commit

Permalink
Merge pull request #214 from DenisBiryukov91/writer-docs
Browse files Browse the repository at this point in the history
update docs regarding undefined behavior when using multiple Bytes::Writers
  • Loading branch information
milyin authored Sep 13, 2024
2 parents 1a50f9f + 99433a8 commit c25dbcd
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 c25dbcd

Please sign in to comment.