Skip to content

Commit 903d6e8

Browse files
sebromeroaentinger
andauthored
Update docs/02-data-exchange.md
Co-authored-by: Alexander Entinger <[email protected]>
1 parent d7941f7 commit 903d6e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/02-data-exchange.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Serial.println(counter);
6565
/* DataConsumerThread_2.inot */
6666
Serial.println(counter);
6767
```
68-
If a thread tries to read from an empty `Sink` the thread is suspended and the next ready thread is scheduled. When a new value is written to a `Source` and consequently copied to a `Sink` the suspended thread is resumed and continuous execution (i.e. read the data and act upon it).
68+
If a thread tries to read from an empty `Sink` the thread is suspended and the next ready thread is scheduled. When a new value is written to a `Source` and consequently copied to a `Sink` the suspended thread is resumed and continuous execution (i.e. read the data and act upon it).
6969

7070
Since the data added to the source is copied multiple threads can read data from a single source without data being lost. This is an advantage compared to a simple shared variable. Furthermore you cannot accidentally write to a `Sink` or read from a `Source`. Attempting to do so results in a compilation error.
7171

0 commit comments

Comments
 (0)