Commit 1b8c81a3 authored by Eurecom's avatar Eurecom

a label can only be a part of a statement

parent 6a1704f0
...@@ -451,7 +451,7 @@ static int num_threads(char* params) ...@@ -451,7 +451,7 @@ static int num_threads(char* params)
//pool->activated=false; //pool->activated=false;
break; break;
default: default: ;
int core_id = atoi(curptr); int core_id = atoi(curptr);
printf("create a thread for core %d\n", core_id); printf("create a thread for core %d\n", core_id);
// set the thread name for debugging // set the thread name for debugging
......
...@@ -503,14 +503,16 @@ int num_threads(char* params) ...@@ -503,14 +503,16 @@ int num_threads(char* params)
int c=toupper(curptr[0]); int c=toupper(curptr[0]);
switch (c) { switch (c) {
case 'N': case 'N': {
//pool->activated=false; //pool->activated=false;
break; break;
}
default: default:{
int core_id = atoi(curptr); int core_id = atoi(curptr);
printf("create a thread for core %d\n", core_id); printf("create a thread for core %d\n", core_id);
nbThreads++; nbThreads++;
}
} }
curptr=strtok_r(NULL,",",&saveptr); curptr=strtok_r(NULL,",",&saveptr);
......
...@@ -118,7 +118,7 @@ int num_threads(char* parms_cpy) ...@@ -118,7 +118,7 @@ int num_threads(char* parms_cpy)
//pool->activated=false; //pool->activated=false;
break; break;
default: default: ;
int const core_id = atoi(curptr); int const core_id = atoi(curptr);
printf("create a thread for core %d\n", core_id); printf("create a thread for core %d\n", core_id);
nbThreads++; nbThreads++;
......
...@@ -278,7 +278,7 @@ int num_threads(char* parms_cpy) ...@@ -278,7 +278,7 @@ int num_threads(char* parms_cpy)
//pool->activated=false; //pool->activated=false;
break; break;
default: default: ;
int const core_id = atoi(curptr); int const core_id = atoi(curptr);
printf("create a thread for core %d\n", core_id); printf("create a thread for core %d\n", core_id);
nbThreads++; nbThreads++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment