Skip to content

Commit

Permalink
Found bug in destructor logic. Default thread id to INT_MAX.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Jun 14, 2022
1 parent 2d117ff commit 4680eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apex/profiler_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class profiler_listener_globals {
std::vector<int> event_sets; // PAPI event sets
std::vector<size_t> 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(); }
};

Expand Down

0 comments on commit 4680eaf

Please sign in to comment.