Skip to content
Snippets Groups Projects
Commit 795eb0f6 authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

Disable multithreading for vmc on Windows

parent 29f6d177
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,9 @@ ...@@ -84,7 +84,9 @@
// Author: Andrea Dotti (15 Feb 2013): First Implementation // Author: Andrea Dotti (15 Feb 2013): First Implementation
// --------------------------------------------------------------- // ---------------------------------------------------------------
#ifndef _WIN32
#define TMCMULTITHREADED 1 #define TMCMULTITHREADED 1
#endif
#if defined(TMCMULTITHREADED) #if defined(TMCMULTITHREADED)
...@@ -97,6 +99,7 @@ typedef int (*thread_lock)(TMCMutex *); ...@@ -97,6 +99,7 @@ typedef int (*thread_lock)(TMCMutex *);
typedef int (*thread_unlock)(TMCMutex *); typedef int (*thread_unlock)(TMCMutex *);
#else #else
typedef int TMCMutex; typedef int TMCMutex;
int fake_mutex_lock_unlock(TMCMutex *);
#define TMCMUTEX_INITIALIZER 1 #define TMCMUTEX_INITIALIZER 1
#define TMCMUTEXLOCK fake_mutex_lock_unlock #define TMCMUTEXLOCK fake_mutex_lock_unlock
#define TMCMUTEXUNLOCK fake_mutex_lock_unlock #define TMCMUTEXUNLOCK fake_mutex_lock_unlock
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment