Skip to content

Commit

Permalink
Add comment regarding detached threads
Browse files Browse the repository at this point in the history
  • Loading branch information
SoilRos committed Oct 7, 2024
1 parent de883b0 commit e584d40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions memstats.hh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ extern "C" {
* Do not call when other threads may call 'new' and 'delete', i.e., make
* sure to syncronize all threads before and after calling report.
* Do not call during static- or dynamic-initialization phase.
* Reporting from a detached thread is undefined behavior.
*/
void memstats_report(const char * report_name = "");

Expand Down

0 comments on commit e584d40

Please sign in to comment.