1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | // TLS.H - |
5 | // |
6 | |
7 | // |
8 | // Encapsulates TLS access for maximum performance. |
9 | // |
10 | |
11 | |
12 | |
13 | #ifndef __tls_h__ |
14 | #define __tls_h__ |
15 | |
16 | #define OFFSETOF__TLS__tls_CurrentThread (0x0) |
17 | #define OFFSETOF__TLS__tls_EETlsData (2*sizeof(void*)) |
18 | |
19 | #ifdef DBG_TARGET_WIN64 |
20 | #define WINNT_OFFSETOF__TEB__ThreadLocalStoragePointer 0x58 |
21 | #else |
22 | #define WINNT_OFFSETOF__TEB__ThreadLocalStoragePointer 0x2c |
23 | #endif |
24 | |
25 | #endif // __tls_h__ |
26 | |