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

Function do_locks

test/bthread_mutex_unittest.cpp:77–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void* do_locks(void *arg) {
78 struct timespec t = { -2, 0 };
79 EXPECT_EQ(ETIMEDOUT, bthread_mutex_timedlock((bthread_mutex_t*)arg, &t));
80 return NULL;
81}
82
83TEST(MutexTest, timedlock) {
84 bthread_cond_t c;

Callers

nothing calls this directly

Calls 1

bthread_mutex_timedlockFunction · 0.85

Tested by

no test coverage detected