From 55dcf0e4388c1ca9621e37b8ae66bdc7b659975f Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 30 Nov 2024 13:04:45 +0100 Subject: [PATCH] Fix example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d353a1b9..222f8992 100644 --- a/README.md +++ b/README.md @@ -4587,8 +4587,8 @@ void f(void) { shared_data_push(p, 23); shared_data_push(p, 32); // And send it through 2 channels of communication - comm_buffer_push(comm1, shared_data_acquire(p)); - comm_buffer_push(comm2, shared_data_acquire(p)); + comm_buffer_push(comm1, p); // shared_data_acquire is done by the buffer to acquite ownership of the data + comm_buffer_push(comm2, p); // Release our ownership of the data shared_data_clear(p); }