diff --git a/src/thread/CriticalSection.hxx b/src/thread/CriticalSection.hxx index 1a55d3aca..3e311738e 100644 --- a/src/thread/CriticalSection.hxx +++ b/src/thread/CriticalSection.hxx @@ -54,11 +54,11 @@ public: void lock() noexcept { ::EnterCriticalSection(&critical_section); - }; + } bool try_lock() noexcept { return ::TryEnterCriticalSection(&critical_section) != 0; - }; + } void unlock() noexcept { ::LeaveCriticalSection(&critical_section);