]> git.saurik.com Git - wxWidgets.git/blob - interface/wx/tls.h
Typo
[wxWidgets.git] / interface / wx / tls.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/tls.h
3 // Purpose: wxTLS_TYPE()
4 // Author: Vadim Zeitlin
5 // RCS-ID: $Id$
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
8
9 /**
10 Macro to be used for thread-specific variables declarations.
11
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:
14 @code
15 struct PerThreadData
16 {
17 ... data which will be different for every thread ...
18 };
19
20 static wxTLS_TYPE(PerThreadData *) s_threadPtr;
21 @endcode
22
23 Currently only types of size less than size of a pointer are supported.
24 This limitation will be lifted in the future.
25 */
26 #define wxTLS_TYPE(type)
27