Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
P-p-H-d committed Nov 30, 2024
1 parent fb604f0 commit 55dcf0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 55dcf0e

Please sign in to comment.