Searched refs:numThreads (Results 1 – 3 of 3) sorted by relevance
86 self->numThreads = 1;103 self->threads = (pthread_t*)malloc(sizeof(pthread_t)*self->numThreads);105 for(int thread_index = 0; thread_index < self->numThreads; thread_index++) {117 if(self->readyThreadCount != self->numThreads) {127 for(int thread_index = 0; thread_index < self->numThreads; thread_index++) {145 long long work_size = test->length / test->numThreads;146 int work_remainder = test->length % test->numThreads;155 if(test->readyThreadCount == test->numThreads)159 test->execute_func(my_index, test->numThreads, work_size, test->testArgc, test->testArgv);
19 int numThreads; variable
1604 constexpr size_t numThreads = 10; in IOUserNotificationTests() local1610 thread_t threads[numThreads]; in IOUserNotificationTests()1624 for (i = 0; i < numThreads; i++) { in IOUserNotificationTests()1630 while (threadsCompleted < numThreads) { in IOUserNotificationTests()1632 IOLog("%s: Threads completed: %zu/%zu\n", __func__, threadsCompleted, numThreads); in IOUserNotificationTests()1636 for (i = 0; i < numThreads; i++) { in IOUserNotificationTests()