MCPcopy Create free account
hub / github.com/bloomberg/pystack / getThreadTid

Method getThreadTid

src/pystack/_pystack/pythread.cpp:161–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161int
162PyThread::getThreadTid(
163 const std::shared_ptr<const AbstractProcessManager>& manager,
164 Structure<py_thread_v>& ts,
165 unsigned long pthread_id)
166{
167 int the_tid = -1;
168 if (manager->versionIsAtLeast(3, 11)) {
169 the_tid = ts.getField(&py_thread_v::o_native_thread_id);
170 } else {
171 the_tid = inferTidFromPThreadStructure(manager, pthread_id);
172 }
173 return the_tid;
174}
175
176int
177PyThread::inferTidFromPThreadStructure(

Callers

nothing calls this directly

Calls 1

versionIsAtLeastMethod · 0.80

Tested by

no test coverage detected