for mingw

pull/306/head
Damiano 4 years ago committed by GitHub
parent 7215864558
commit a72e415897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,15 +2,16 @@
#include "Mutex.h"
#if NV_OS_WIN32
#include "Win32.h"
#elif NV_OS_USE_PTHREAD
#if NV_OS_USE_PTHREAD
#include <pthread.h>
#include <errno.h> // EBUSY
#elif NV_OS_WIN32
#include "Win32.h"
#endif // NV_OS
#if NV_USE_TELEMETRY3
@ -23,7 +24,7 @@ extern HTELEMETRY tmContext;
using namespace nv;
#if NV_OS_WIN32
#if NV_OS_WIN32 && !NV_OS_MINGW
struct Mutex::Private {
CRITICAL_SECTION mutex;
@ -53,7 +54,7 @@ void Mutex::lock()
TmU64 matcher;
tmTryLockEx(tmContext, &matcher, 100/*0.1 ms*/, __FILE__, __LINE__, this, "blocked");
#endif
EnterCriticalSection(&m->mutex);
#if NV_USE_TELEMETRY3

Loading…
Cancel
Save