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 4e47e27 commit 731efabCopy full SHA for 731efab
2 files changed
examples/Lock-1.cpp_
@@ -3,13 +3,13 @@
3
4
void consumer(FastMutex &mut, Led &led)
5
{
6
- auto lock = Lock(mut);
+ auto lock = Lock<FastMutex>(mut);
7
led.tick();
8
}
9
10
void producer(FastMutex &mut)
11
12
13
This::sleepFor(SEC);
14
15
examples/Lock-2.cpp_
@@ -6,13 +6,13 @@ auto mtx = Mutex(mtxDefault);
void consumer()
- auto lock = Lock(mtx);
+ auto lock = Lock<Mutex>(mtx);
void producer()
16
17
18
0 commit comments