Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
795eb0f6
Commit
795eb0f6
authored
7 years ago
by
Bertrand Bellenot
Browse files
Options
Downloads
Patches
Plain Diff
Disable multithreading for vmc on Windows
parent
29f6d177
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
montecarlo/vmc/inc/TMCAutoLock.h
+3
-0
3 additions, 0 deletions
montecarlo/vmc/inc/TMCAutoLock.h
with
3 additions
and
0 deletions
montecarlo/vmc/inc/TMCAutoLock.h
+
3
−
0
View file @
795eb0f6
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment