MCPcopy Create free account
hub / github.com/apache/brpc / succeed_to_lock_id

Function succeed_to_lock_id

test/bthread_id_unittest.cpp:452–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452static void* succeed_to_lock_id(void* arg) {
453 bthread_id_t id = *(bthread_id_t*)arg;
454 EXPECT_EQ(0, bthread_id_lock(id, NULL));
455 EXPECT_EQ(0, bthread_id_unlock(id));
456 return NULL;
457}
458
459TEST(BthreadIdTest, about_to_destroy_cancelled) {
460 bthread_id_t id;

Callers

nothing calls this directly

Calls 1

bthread_id_unlockFunction · 0.85

Tested by

no test coverage detected