]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/tls.h
6dcb3872274f31b6cfeba7a8599413d61bce42e5
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTLS_TYPE()
4 // Author: Vadim Zeitlin
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 Macro to be used for thread-specific variables declarations.
12 This macro can be used to define thread-specific variables of the specified
13 @a type. Such variables must be global or static. Example of use:
17 ... data which will be different for every thread ...
20 static wxTLS_TYPE(PerThreadData *) s_threadPtr;
23 Currently only types of size less than size of a pointer are supported.
24 This limitation will be lifted in the future.
26 #define wxTLS_TYPE(type)