| 2318 | } |
| 2319 | |
| 2320 | prof_tdata_t * |
| 2321 | prof_tdata_reinit(tsd_t *tsd, prof_tdata_t *tdata) { |
| 2322 | uint64_t thr_uid = tdata->thr_uid; |
| 2323 | uint64_t thr_discrim = tdata->thr_discrim + 1; |
| 2324 | char *thread_name = (tdata->thread_name != NULL) ? |
| 2325 | prof_thread_name_alloc(tsd_tsdn(tsd), tdata->thread_name) : NULL; |
| 2326 | bool active = tdata->active; |
| 2327 | |
| 2328 | prof_tdata_detach(tsd, tdata); |
| 2329 | return prof_tdata_init_impl(tsd, thr_uid, thr_discrim, thread_name, |
| 2330 | active); |
| 2331 | } |
| 2332 | |
| 2333 | static bool |
| 2334 | prof_tdata_expire(tsdn_t *tsdn, prof_tdata_t *tdata) { |
no test coverage detected