Commit 2c63a400 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@55222 954022d7-b5bf-4e40-9824-e11837661b57
parent 08f532de
#include "TemporaryCS.h"
#include "TemporaryCS.h"
#include "../common/Types.h"
#if defined(WIN32) || defined(_WIN32_WCE)
......@@ -59,16 +59,15 @@ public:
__critical_section* pCS = (__critical_section*)pNative;
pthread_mutexattr_t _attr;
pthread_mutexattr_init(&_attr);
pthread_mutexattr_settype(&_attr, PTHREAD_MUTEX_RECURSIVE_NP);
pthread_mutex_init(&m_cs, &_attr);
pthread_mutex_init(&pCS->m_cs, &_attr);
pthread_mutexattr_destroy(&_attr);
}
static void DeleteCriticalSection(NSCriticalSection::CRITICAL_SECTION_NATIVE* pNative)
{
__critical_section* pCS = (__critical_section*)pNative;
pthread_mutex_destroy(&m_cs);
pthread_mutex_destroy(&pCS->m_cs);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment