| 175 | } |
| 176 | |
| 177 | TSThread |
| 178 | TSThreadInit() |
| 179 | { |
| 180 | INKThreadInternal *thread; |
| 181 | |
| 182 | thread = new INKThreadInternal; |
| 183 | |
| 184 | #ifdef DEBUG |
| 185 | if (thread == nullptr) { |
| 186 | return (TSThread) nullptr; |
| 187 | } |
| 188 | #endif |
| 189 | |
| 190 | thread->set_specific(); |
| 191 | |
| 192 | return reinterpret_cast<TSThread>(thread); |
| 193 | } |
| 194 | |
| 195 | void |
| 196 | TSThreadDestroy(TSThread thread) |