| 159 | } |
| 160 | |
| 161 | int |
| 162 | PyThread::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 | |
| 176 | int |
| 177 | PyThread::inferTidFromPThreadStructure( |
nothing calls this directly
no test coverage detected