Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2017-03-17 20:50:33 +0300
committerMike Erwin <significant.bit@gmail.com>2017-03-17 21:14:22 +0300
commitcf62424e47c2b9f266128ad63a796b749d18f7e2 (patch)
treeaa4c76ff4a5eb541ab6aa3d6f2fe7d0c7f9dc597 /intern
parent2977a8cd2176997ab38dc4ba22db9b4029365aad (diff)
Gawain: remove PER_THREAD macro
This attempt at TLS was leftover from an earlier prototype. It never worked with Blender's build system, and was defined to just exist, not to actually do anything.
Diffstat (limited to 'intern')
-rw-r--r--intern/gawain/gawain/common.h4
-rw-r--r--intern/gawain/src/immediate.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/intern/gawain/gawain/common.h b/intern/gawain/gawain/common.h
index a4c1e6cba6e..b734da41681 100644
--- a/intern/gawain/gawain/common.h
+++ b/intern/gawain/gawain/common.h
@@ -22,10 +22,6 @@
#include <assert.h>
#endif
-#define PER_THREAD
-// #define PER_THREAD __thread
-// MSVC uses __declspec(thread) for C code
-
#define APPLE_LEGACY (defined(__APPLE__) && defined(WITH_GL_PROFILE_COMPAT))
#if APPLE_LEGACY
diff --git a/intern/gawain/src/immediate.c b/intern/gawain/src/immediate.c
index dc7c1732a0c..0e6a6ba51a0 100644
--- a/intern/gawain/src/immediate.c
+++ b/intern/gawain/src/immediate.c
@@ -51,8 +51,8 @@ typedef struct {
// size of internal buffer -- make this adjustable?
#define IMM_BUFFER_SIZE (4 * 1024 * 1024)
-static PER_THREAD bool initialized = false;
-static PER_THREAD Immediate imm;
+static bool initialized = false;
+static Immediate imm;
void immInit(void)
{