Merge pull request #1252 from asmorkalov:winrt_api_cert_highgui_fix

This commit is contained in:
Roman Donchenko
2013-08-16 14:05:39 +04:00
committed by OpenCV Buildbot
6 changed files with 52 additions and 3 deletions

View File

@@ -366,7 +366,15 @@ private:
struct ImplMutex::Impl
{
void init() { InitializeCriticalSection(&cs); refcount = 1; }
void init()
{
#if (_WIN32_WINNT >= 0x0600)
::InitializeCriticalSectionEx(&cs, 1000, 0);
#else
::InitializeCriticalSection(&cs);
#endif
refcount = 1;
}
void destroy() { DeleteCriticalSection(&cs); }
void lock() { EnterCriticalSection(&cs); }