Skip to content
Snippets Groups Projects
Commit 9ca56dd3 authored by Ian-Woo Kim's avatar Ian-Woo Kim Committed by Marge Bot
Browse files

mutex wrap in refreshProfilingCCSs

parent 84357d11
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,7 @@ void initProfiling (void)
//
void refreshProfilingCCSs (void)
{
ACQUIRE_LOCK(&ccs_mutex);
// make CCS_MAIN the parent of all the pre-defined CCSs.
CostCentreStack *next;
for (CostCentreStack *ccs = CCS_LIST; ccs != NULL; ) {
......@@ -214,6 +215,7 @@ void refreshProfilingCCSs (void)
ccs = next;
}
CCS_LIST = NULL;
RELEASE_LOCK(&ccs_mutex);
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment