ParseError("%s - cpu must be an integer in the range"
" of 0 < cpu < max_cpus", fqn, cpu);
- else if (cpu >= CPU_SETSIZE)
- ParseError("cpu must be between 0 and %d", INT8_MAX);
-
else if ((source.empty()) && (thread == -1))
ParseError("%s - must have either a source or a thread!", fqn);
static unsigned instance_max = 1;
static THREAD_LOCAL unsigned instance_id = 0;
-static THREAD_LOCAL cpu_set_t cpu_set;
-
void set_instance_id(unsigned id)
{
// PREPROCESSOR MACROS -- these are not actually if statements!
# if LINUX
{
+ static THREAD_LOCAL cpu_set_t cpu_set;
+
if (cpu >= CPU_SETSIZE)
FatalError("Maximum CPU value for this Operating System is %d",
CPU_SETSIZE);