Home
last modified time | relevance | path

Searched refs:numThreads (Results 1 – 3 of 3) sorted by relevance

/xnu-11215/tools/tests/perf_index/PerfIndex_COPS_Module/
H A DPITest.m86 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);
H A DPITest.h19 int numThreads; variable
/xnu-11215/iokit/Tests/
H A DTests.cpp1604 constexpr size_t numThreads = 10; in IOUserNotificationTests() local
1610 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()