Lines Matching refs:test
81 NSLog(@"Failed to load test %@", [self testName]);
143 PITest* test = (PITest*)[(__bridge NSArray*)arg objectAtIndex:1];
145 long long work_size = test->length / test->numThreads;
146 int work_remainder = test->length % test->numThreads;
152 pthread_mutex_lock(&test->readyThreadCountLock);
153 test->readyThreadCount++;
155 if(test->readyThreadCount == test->numThreads)
156 pthread_cond_signal(&test->threadsReadyCvar);
157 pthread_cond_wait(&test->startCvar, &test->readyThreadCountLock);
158 pthread_mutex_unlock(&test->readyThreadCountLock);
159 test->execute_func(my_index, test->numThreads, work_size, test->testArgc, test->testArgv);