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
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-07-09 22:38:33 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-07-09 22:38:33 +0400
commit677e136e4b89c9b1a89c19fc8290d4a4a2e77ec4 (patch)
tree21406d180d0de9434850f46ae767f5f1723f8a18 /source/blender/blenlib/BLI_threads.h
parent8491814a107f3b90bddfbe296d32d1564f3455ea (diff)
Partial revert of rev58110
There's one thing we didn't foresee from the beginning, which is apparently TLS is only available in OSX starting from version 10.7, and we still do support of 10.6. After recent Brecht's changes about locked viewport while initializing BI render this TLS is not needed in trunk anymore. So reverting this chunk of base iteration to use static variable. But leaving all the other static variables warped into context still, it should help a bit in the future refactor. Real fix would be to have some kind of graph context evaluation structure which would be passing to update routines (which will solve threaded mballs update) and making depsgraph responsible for getting a motherball. But this is all for GSoC project.
Diffstat (limited to 'source/blender/blenlib/BLI_threads.h')
-rw-r--r--source/blender/blenlib/BLI_threads.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h
index ec558188270..154986936a2 100644
--- a/source/blender/blenlib/BLI_threads.h
+++ b/source/blender/blenlib/BLI_threads.h
@@ -182,13 +182,6 @@ int BLI_thread_queue_size(ThreadQueue *queue);
void BLI_thread_queue_wait_finish(ThreadQueue *queue);
void BLI_thread_queue_nowait(ThreadQueue *queue);
-/* Thread Local Storage */
-#ifdef _MSC_VER
-# define ThreadVariable __declspec(thread)
-#else
-# define ThreadVariable __thread
-#endif
-
#ifdef __cplusplus
}
#endif