Commit d12863dc authored by coppro's avatar coppro

Fixed TLS

parent a2745bc3
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#ifdef _MSC_VER #ifdef _MSC_VER
# define THREAD_LOCAL __declspec(thread) # define THREAD_LOCAL __declspec(thread)
# define HAVE_TLS 1 # define HAVE_TLS 1
#elseif defined __linux__ #elseif defined __linux
# define THREAD_LOCAL __thread # define THREAD_LOCAL __thread
# define HAVE_TLS 1 # define HAVE_TLS 1
#else #else
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
~ThreadLocalObject () { ~ThreadLocalObject () {
for (typename map<int,T*>::iterator i = objects.begin(); i != objects.end(); ++i) { for (typename map<int,T*>::iterator i = objects.begin(); i != objects.end(); ++i) {
delete *i; delete (*i).second;
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment