Fix example

This commit is contained in:
Patrick Pelissier committed 2024-11-30 13:04:45 +01:00
1 parent fb604f02b7
commit 55dcf0e438
1 file changed
+2 -2
+2 -2
View File
@@ -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);
}