diff --git a/min_broken/main.cpp b/min_broken/main.cpp index 843534ebf..7fd48a8f8 100644 --- a/min_broken/main.cpp +++ b/min_broken/main.cpp @@ -1,26 +1,8 @@ -#include #include -class TestClass { -public: - TestClass() { - std::lock_guard lck(mtx); - value = 42; - } - - int getValue() { - std::lock_guard lck(mtx); - return value; - } - -private: - std::recursive_mutex mtx; - int value = 0; -}; - -TestClass test; +std::recursive_mutex mtx; int main() { - printf("Value: %d\n", test.getValue()); + std::lock_guard lck(mtx); return 0; } \ No newline at end of file