Remove wxTLS_XXX() macros from wx itself

Still use wxTHREAD_SPECIFIC_DECL as it is defined as nothing when
wxUSE_THREADS==0, but get rid of wxTLS_VALUE and friends.

Also enable wxUSE_STRING_POS_CACHE when wxUSE_UNICODE_UTF8 because the
issues described in the (now also removed) comment shouldn't occur with
the compiler implementation of the thread-specific variables.
This commit is contained in:
Vadim Zeitlin
2022-10-26 03:31:54 +02:00
parent 16a746ec35
commit ed748bd5a8
5 changed files with 10 additions and 21 deletions
+2 -5
View File
@@ -35,11 +35,8 @@ struct PerThreadData
int number;
};
wxTLS_TYPE(PerThreadData) gs_threadDataVar;
#define gs_threadData wxTLS_VALUE(gs_threadDataVar)
wxTLS_TYPE(int) gs_threadIntVar;
#define gs_threadInt wxTLS_VALUE(gs_threadIntVar)
wxTHREAD_SPECIFIC_DECL PerThreadData gs_threadData;
wxTHREAD_SPECIFIC_DECL int gs_threadInt;
// ----------------------------------------------------------------------------
// test thread