MCPcopy Create free account
hub / github.com/apache/trafficserver / TSThreadInit

Function TSThreadInit

src/api/InkIOCoreAPI.cc:177–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177TSThread
178TSThreadInit()
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
195void
196TSThreadDestroy(TSThread thread)

Callers 1

pthread_start_funcFunction · 0.85

Calls 1

set_specificMethod · 0.45

Tested by 1

pthread_start_funcFunction · 0.68