OLD | NEW |
---|---|
1 //===- subzero/src/IceTLS.h - thread_local workaround -----------*- C++ -*-===// | 1 //===- subzero/src/IceTLS.h - thread_local workaround -----------*- C++ -*-===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 /// | 9 /// |
10 /// \file | 10 /// \file |
11 /// This file defines macros for working around the lack of support for | 11 /// \brief Defines macros for working around the lack of support for |
Jim Stichnoth
2015/12/01 18:41:16
Does thread_local fit on this line within 80-cols?
rkotlerimgtec
2015/12/02 01:32:48
no
| |
12 /// thread_local in MacOS 10.6. It assumes std::thread is written in terms of | 12 /// thread_local in MacOS 10.6. |
13 /// pthread. Define ICE_THREAD_LOCAL_HACK to enable the pthread workarounds. | 13 /// |
14 /// This assumes std::thread is written in terms of pthread. Define | |
15 /// ICE_THREAD_LOCAL_HACK to enable the pthread workarounds. | |
14 /// | 16 /// |
15 //===----------------------------------------------------------------------===// | 17 //===----------------------------------------------------------------------===// |
16 | 18 |
17 #ifndef SUBZERO_SRC_ICETLS_H | 19 #ifndef SUBZERO_SRC_ICETLS_H |
18 #define SUBZERO_SRC_ICETLS_H | 20 #define SUBZERO_SRC_ICETLS_H |
19 | 21 |
20 /// | 22 /// |
21 /// @defgroup /IceTLS Defines 5 macros for unifying thread_local and pthread: | 23 /// @defgroup /IceTLS Defines 5 macros for unifying thread_local and pthread: |
22 /// @{ | 24 /// @{ |
23 /// | 25 /// |
(...skipping 79 matching lines...) Loading... | |
103 #define ICE_TLS_GET_FIELD(FieldName) (FieldName) | 105 #define ICE_TLS_GET_FIELD(FieldName) (FieldName) |
104 #define ICE_TLS_SET_FIELD(FieldName, Value) (FieldName = (Value)) | 106 #define ICE_TLS_SET_FIELD(FieldName, Value) (FieldName = (Value)) |
105 | 107 |
106 #endif // !ICE_THREAD_LOCAL_HACK | 108 #endif // !ICE_THREAD_LOCAL_HACK |
107 | 109 |
108 /// | 110 /// |
109 /// @} | 111 /// @} |
110 /// | 112 /// |
111 | 113 |
112 #endif // SUBZERO_SRC_ICETLS_H | 114 #endif // SUBZERO_SRC_ICETLS_H |
OLD | NEW |