Skip to content

Commit 844e1ef

Browse files
committed
Merge branch 'main' of https://github.com/glutio/Taskfun into main
2 parents 8ef9e71 + f63ad6c commit 844e1ef

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ A task can stop other tasks or can stop itself. In case a running task calls `st
148148
Use `currentTask()` to get the id of currenly executing task. Technically the id is the tasks's position in the list of tasks. Main `loop()` task id is 0.
149149

150150
```
151-
int currentTask()
151+
int currentTask();
152152
```
153153

154154
## SyncVar<>
@@ -157,6 +157,9 @@ When two tasks access a global(shared) variable, access needs to be synchronized
157157
// synchronized counter
158158
SyncVar<int> _counter;
159159
160+
// array of synchronized variables
161+
SyncVar<bool> state[10];
162+
160163
// synchronized linked list node
161164
template<typename T>
162165
struct ListNode {

0 commit comments

Comments
 (0)