diff --git a/talk/concurrency/mutexes.tex b/talk/concurrency/mutexes.tex index 5721e8d6..1fd4b433 100644 --- a/talk/concurrency/mutexes.tex +++ b/talk/concurrency/mutexes.tex @@ -5,7 +5,7 @@ \begin{exampleblockGB}{Example code}{https://godbolt.org/z/oGz61Pn19}{Race} \begin{cppcode*}{} int a = 0; - void inc() { a++; }; + void inc() { ++a; }; void inc100() { for (int i=0; i < 100; i++) inc(); };