offset thread ids where possible (#130)

- configure known background threads to start indexing down from TIMEMORY_MAX_THREADS
- invoke sampling::shutdown() instead of just blocking signals where possible

[ROCm/rocprofiler-systems commit: 1343c6722a]
Cette révision appartient à :
Jonathan R. Madsen a créé et GitHub a révisé 2022-08-08 08:37:37 -05:00
1 Parent 9bf0cc4dc1
révision ee5fe1c1bd
5 fichiers modifiés
+25 -7

Aucun fichier ne correspond à votre recherche

+3 -2
Voir le fichier
@@ -74,10 +74,11 @@ get_sampler_is_sampling()
void
sampler::poll(std::atomic<State>* _state, nsec_t _interval, promise_t* _ready)
{
OMNITRACE_SCOPED_THREAD_STATE(ThreadState::Internal);
threading::offset_this_id(true);
threading::set_thread_name("omni.sampler");
OMNITRACE_SCOPED_THREAD_STATE(ThreadState::Internal);
// notify thread started
if(_ready) _ready->set_value();