Skip to content

Commit

Permalink
updated examples because of c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
rajszym committed Jul 8, 2020
1 parent 5f93ba5 commit 9e736bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Lock.cpp_
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

void consumer(Mutex &mtx, Led &led)
{
auto lock = Lock(mtx);
auto lock = Lock<Mutex>(mtx);
led.tick();
}

void producer(Mutex &mtx)
{
auto lock = Lock(mtx);
auto lock = Lock<Mutex>(mtx);
This::sleepFor(SEC);
}

Expand Down

0 comments on commit 9e736bf

Please sign in to comment.