rt: Delete Windows CRITICAL_SECTION in dtor
This commit is contained in:
parent
6b280c61ce
commit
159dfd7c3b
@ -34,6 +34,7 @@ lock_and_signal::lock_and_signal()
|
||||
lock_and_signal::~lock_and_signal() {
|
||||
#if defined(__WIN32__)
|
||||
CloseHandle(_event);
|
||||
DeleteCriticalSection(&_cs);
|
||||
#else
|
||||
CHECKED(pthread_cond_destroy(&_cond));
|
||||
CHECKED(pthread_mutex_destroy(&_mutex));
|
||||
|
Loading…
x
Reference in New Issue
Block a user