Skip to content

Commit

Permalink
trying without static initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Jun 26, 2024
1 parent e613087 commit 5f77718
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions min_broken/main.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include <mutex>

std::recursive_mutex mtx;

int main() {
std::recursive_mutex mtx;
std::lock_guard<std::recursive_mutex> lck(mtx);
return 0;
}

0 comments on commit 5f77718

Please sign in to comment.