rt: Delete Windows CRITICAL_SECTION in dtor
This commit is contained in:
parent
6b280c61ce
commit
159dfd7c3b
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue