Home | History | Annotate | Download | only in unittest

Lines Matching full:num_contexts

231       double num_contexts;     
232 int NUM_CONTEXTS;
252 int id = rand() % params.NUM_CONTEXTS;
272 goals.RegisterParameter(&params.num_contexts);
273 goals.SetParameterStat(N_MUTEXES, &params.num_contexts, 1);
278 params.NUM_CONTEXTS = round(params.num_contexts);
279 if (params.NUM_CONTEXTS <= 0)
280 params.NUM_CONTEXTS = 1;
283 contexts = new TestContext[params.NUM_CONTEXTS];
290 int id = rand() % NUM_CONTEXTS;
305 int atomic_integers[NUM_CONTEXTS] = {0};
308 int id = rand() % NUM_CONTEXTS;
319 const int NUM_CONTEXTS = 1024;
327 } contexts[NUM_CONTEXTS];
331 TestContext * context = &contexts[rand() % NUM_CONTEXTS];
336 for (int i = 0; i < NUM_CONTEXTS; i++)
395 const int NUM_CONTEXTS = 16;
398 double num_contexts;
399 int NUM_CONTEXTS;
420 TestContext * context = &contexts[rand() % params.NUM_CONTEXTS];
433 TestContext * context = &contexts[rand() % NUM_CONTEXTS];
447 double num_contexts;
448 int NUM_CONTEXTS;
479 int id = rand() % params.NUM_CONTEXTS;
492 context->CV_Signalled = params.NUM_CONTEXTS;
501 goals.RegisterParameter(&params.num_contexts);
502 goals.SetParameterStat(N_CV, &params.num_contexts, 1);
503 goals.SetParameterStat(N_MUTEXES, &params.num_contexts, 1);
517 params.NUM_CONTEXTS = round(params.num_contexts);
518 if (params.NUM_CONTEXTS < 1)
519 params.NUM_CONTEXTS = 1;
520 contexts = new TestContext[params.NUM_CONTEXTS];
524 params.NUM_CONTEXTS = 100;
526 contexts = new TestContext[params.NUM_CONTEXTS];
533 NUM_CONTEXTS;
537 if (nAttempts++ > params.NUM_CONTEXTS)
540 id = (id + 1) % params.NUM_CONTEXTS;