mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
Fixed TLS
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@768 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -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 @@
|
|||||||
|
|
||||||
~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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user