diff --git a/src/apex/profiler_listener.cpp b/src/apex/profiler_listener.cpp index 1b7fd233..a539c4d8 100644 --- a/src/apex/profiler_listener.cpp +++ b/src/apex/profiler_listener.cpp @@ -96,7 +96,7 @@ class profiler_listener_globals { std::vector event_sets; // PAPI event sets std::vector event_set_sizes; // PAPI event set sizes papi_state thread_papi_state; - profiler_listener_globals() : my_tid(0), thread_papi_state(papi_suspended) { } + profiler_listener_globals() : my_tid(UINT_MAX), thread_papi_state(papi_suspended) { } ~profiler_listener_globals() { if (my_tid == 0) finalize(); } };