Home | History | Annotate | Download | only in tests

Lines Matching defs:cpus

84   cpu_set_t cpus;
85 ASSERT_EQ(0, sched_getaffinity(0, sizeof(cpu_set_t), &cpus));
86 CPU_CLR(arg->main_cpu_id, &cpus);
87 ASSERT_EQ(0, sched_setaffinity(0, sizeof(cpu_set_t), &cpus));
109 cpu_set_t cpus;
110 ASSERT_EQ(0, sched_getaffinity(0, sizeof(cpu_set_t), &cpus));
111 if (CPU_COUNT(&cpus) < 2) {
126 // 2. Make master thread and slave thread running on different cpus:
127 // master thread uses first available cpu, and slave thread uses other cpus.
131 if (CPU_ISSET(i, &cpus)) {
147 CPU_ZERO(&cpus);
148 CPU_SET(arg.main_cpu_id, &cpus);
149 ASSERT_EQ(0, sched_setaffinity(0, sizeof(cpu_set_t), &cpus));