git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
28 lines
849 B
C
28 lines
849 B
C
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/tls.h
|
|
// Purpose: wxTLS_TYPE()
|
|
// Author: Vadim Zeitlin
|
|
// RCS-ID: $Id$
|
|
// Licence: wxWindows license
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
/**
|
|
Macro to be used for thread-specific variables declarations.
|
|
|
|
This macro can be used to define thread-specific variables of the specified
|
|
@a type. Such variables must be global or static. Example of use:
|
|
@code
|
|
struct PerThreadData
|
|
{
|
|
... data which will be different for every thread ...
|
|
};
|
|
|
|
static wxTLS_TYPE(PerThreadData *) s_threadPtr;
|
|
@endcode
|
|
|
|
Currently only types of size less than size of a pointer are supported.
|
|
This limitation will be lifted in the future.
|
|
*/
|
|
#define wxTLS_TYPE(type)
|
|
|