Skip to content

Commit

Permalink
Extra workflow information
Browse files Browse the repository at this point in the history
  • Loading branch information
dariosg committed Nov 5, 2020
1 parent 0a50408 commit 087eb35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ please follow these steps:
mkdir -p build-release
cd build-release
rm -rf ./ # only run this command inside build-release directory
cmake ../
cmake -DCMAKE_BUILD_TYPE=Release ../
cd Laboratory-3
make -j2 # compile two jobs in parallel
```
Expand Down
6 changes: 2 additions & 4 deletions code_examples/snippet_mutex_exception.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ std::mutex m;
int shared_var = 0;

void increment() {

int* siete = new int(7);

m.lock();
++shared_var;
int* seven = new int(7);
shared_var+=*seven;
m.unlock();
}

0 comments on commit 087eb35

Please sign in to comment.