mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-26 01:28:38 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user