• Home
  • Raw
  • Download

Lines Matching refs:sibling

2218 	struct tsync_sibling sibling[TSYNC_SIBLINGS];  in FIXTURE_DATA()  local
2240 memset(&self->sibling, 0, sizeof(self->sibling)); in FIXTURE_SETUP()
2255 self->sibling[0].tid = 0; in FIXTURE_SETUP()
2256 self->sibling[0].cond = &self->cond; in FIXTURE_SETUP()
2257 self->sibling[0].started = &self->started; in FIXTURE_SETUP()
2258 self->sibling[0].mutex = &self->mutex; in FIXTURE_SETUP()
2259 self->sibling[0].diverge = 0; in FIXTURE_SETUP()
2260 self->sibling[0].num_waits = 1; in FIXTURE_SETUP()
2261 self->sibling[0].prog = &self->root_prog; in FIXTURE_SETUP()
2262 self->sibling[0].metadata = _metadata; in FIXTURE_SETUP()
2263 self->sibling[1].tid = 0; in FIXTURE_SETUP()
2264 self->sibling[1].cond = &self->cond; in FIXTURE_SETUP()
2265 self->sibling[1].started = &self->started; in FIXTURE_SETUP()
2266 self->sibling[1].mutex = &self->mutex; in FIXTURE_SETUP()
2267 self->sibling[1].diverge = 0; in FIXTURE_SETUP()
2268 self->sibling[1].prog = &self->root_prog; in FIXTURE_SETUP()
2269 self->sibling[1].num_waits = 1; in FIXTURE_SETUP()
2270 self->sibling[1].metadata = _metadata; in FIXTURE_SETUP()
2283 struct tsync_sibling *s = &self->sibling[sib]; in FIXTURE_TEARDOWN()
2330 void tsync_start_sibling(struct tsync_sibling *sibling) in tsync_start_sibling() argument
2332 pthread_create(&sibling->tid, NULL, tsync_sibling, (void *)sibling); in tsync_start_sibling()
2364 self->sibling[0].diverge = 1; in TEST_F()
2365 tsync_start_sibling(&self->sibling[0]); in TEST_F()
2366 tsync_start_sibling(&self->sibling[1]); in TEST_F()
2381 PTHREAD_JOIN(self->sibling[0].tid, &status); in TEST_F()
2383 PTHREAD_JOIN(self->sibling[1].tid, &status); in TEST_F()
2403 tsync_start_sibling(&self->sibling[0]); in TEST_F()
2404 tsync_start_sibling(&self->sibling[1]); in TEST_F()
2423 PTHREAD_JOIN(self->sibling[0].tid, &status); in TEST_F()
2425 PTHREAD_JOIN(self->sibling[1].tid, &status); in TEST_F()
2434 tsync_start_sibling(&self->sibling[0]); in TEST_F()
2435 tsync_start_sibling(&self->sibling[1]); in TEST_F()
2449 PTHREAD_JOIN(self->sibling[0].tid, &status); in TEST_F()
2451 PTHREAD_JOIN(self->sibling[1].tid, &status); in TEST_F()
2461 tsync_start_sibling(&self->sibling[0]); in TEST_F()
2462 tsync_start_sibling(&self->sibling[1]); in TEST_F()
2489 PTHREAD_JOIN(self->sibling[0].tid, &status); in TEST_F()
2491 PTHREAD_JOIN(self->sibling[1].tid, &status); in TEST_F()
2511 self->sibling[0].diverge = 1; in TEST_F()
2512 tsync_start_sibling(&self->sibling[0]); in TEST_F()
2513 tsync_start_sibling(&self->sibling[1]); in TEST_F()
2522 ASSERT_EQ(self->sibling[0].system_tid, ret) { in TEST_F()
2534 PTHREAD_JOIN(self->sibling[0].tid, &status); in TEST_F()
2536 PTHREAD_JOIN(self->sibling[1].tid, &status); in TEST_F()
2555 self->sibling[0].diverge = 1; in TEST_F()
2556 tsync_start_sibling(&self->sibling[0]); in TEST_F()
2557 tsync_start_sibling(&self->sibling[1]); in TEST_F()
2574 ASSERT_EQ(ret, self->sibling[0].system_tid) { in TEST_F()
2578 if (ret == self->sibling[0].system_tid) in TEST_F()
2586 self->sibling[!sib].num_waits += 1; in TEST_F()
2593 PTHREAD_JOIN(self->sibling[sib].tid, &status); in TEST_F()
2596 while (!kill(self->sibling[sib].system_tid, 0)) in TEST_F()
2612 if (self->sibling[sib].num_waits > 1) in TEST_F()
2613 self->sibling[sib].num_waits = 1; in TEST_F()
2618 PTHREAD_JOIN(self->sibling[sib].tid, &status); in TEST_F()
2621 while (!kill(self->sibling[sib].system_tid, 0)) in TEST_F()