Lines Matching refs:cpumasksize
32 int cpumasksize; in check_affinity() local
36 cpumasksize = uv_cpumask_size(); in check_affinity()
37 ASSERT_GT(cpumasksize, 0); in check_affinity()
39 r = uv_thread_setaffinity(&tid, cpumask, NULL, cpumasksize); in check_affinity()
41 r = uv_thread_setaffinity(&tid, cpumask + cpumasksize, cpumask, cpumasksize); in check_affinity()
51 int cpumasksize; in TEST_IMPL() local
65 cpumasksize = uv_cpumask_size(); in TEST_IMPL()
66 ASSERT_GT(cpumasksize, 0); in TEST_IMPL()
68 cpumask = calloc(4 * cpumasksize, 1); in TEST_IMPL()
71 r = uv_thread_getaffinity(&threads[0], cpumask, cpumasksize); in TEST_IMPL()
76 memset(cpumask, 0, 4 * cpumasksize); in TEST_IMPL()
78 t1first = cpumasksize * 0; in TEST_IMPL()
79 t1second = cpumasksize * 1; in TEST_IMPL()
80 t2first = cpumasksize * 2; in TEST_IMPL()
81 t2second = cpumasksize * 3; in TEST_IMPL()
125 memset(cpumask, 0, cpumasksize); in TEST_IMPL()
127 r = uv_thread_setaffinity(&threads[0], cpumask, NULL, cpumasksize); in TEST_IMPL()
130 memset(cpumask, 0, cpumasksize); in TEST_IMPL()
131 r = uv_thread_getaffinity(&threads[0], cpumask, cpumasksize); in TEST_IMPL()
133 for (i = 0; i < cpumasksize; i++) { in TEST_IMPL()
148 int cpumasksize; in TEST_IMPL() local
149 cpumasksize = uv_cpumask_size(); in TEST_IMPL()
150 ASSERT_EQ(cpumasksize, UV_ENOTSUP); in TEST_IMPL()