Skip to content

Commit ba020c0

Browse files
authored
Change descriptions to use push function
1 parent 5c3f105 commit ba020c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/02-data-exchange.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ SHARED(counter, int); /* A globally available, threadsafe, shared variable of ty
1616
SHARED(counter, int, 8); /* Same as before, but now the internal queue size is defined as 8. */
1717
```
1818
Writing to and reading from the shared variable may not always happen concurrently. I.e. a thread reading sensor data may update the shared variable faster than a slower reader thread would extract those values. Therefore the shared variable is modeled as a queue which can store (buffer) a certain number of entries. That way the slower reader thread can access all the values in the same order as they have been written.
19-
New values can be inserted naturally by using the assignment operator `=` as if it was just any ordinary variable type, i.e. `int`, `char`, ...
19+
New values can be inserted by using the `push` function that you may know from other data structures.
2020
2121
```C++
2222
/* Thread_1.inot */

0 commit comments

Comments
 (0)