We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdf573d commit cffb7d6Copy full SHA for cffb7d6
examples/reentrantLocking/reentrantLocking.ino
@@ -26,7 +26,7 @@ void nestedFunction() {
26
// here we take a nested lock, which is allowed by our lock, which is essentially reference counted for up to
27
// 255 levels of depth.
28
TaskMgrLock locker(myLock);
29
- log("in nested function", myVar);
+ log("in nested function, lock count", myLock.getLockCount());
30
}
31
32
void stateMachineLockingAsync();
@@ -46,6 +46,8 @@ void setup() {
46
47
log("locked synchronously, count", myLock.getLockCount());
48
49
+ nestedFunction();
50
+
51
// do something that's unlikely to be optimised out, to waste some time
52
for(int i=0; i < 100; i++) {
53
myVar++;
0 commit comments