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

Function do_pthread_timedlock

test/bthread_mutex_unittest.cpp:328–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326
327#if HAS_PTHREAD_MUTEX_TIMEDLOCK
328void* do_pthread_timedlock(void *arg) {
329 struct timespec t = { -2, 0 };
330 EXPECT_EQ(ETIMEDOUT, pthread_mutex_timedlock((pthread_mutex_t*)arg, &t));
331 EXPECT_EQ(ETIMEDOUT, errno);
332 return NULL;
333}
334#endif
335
336TEST(MutexTest, pthread_mutex) {

Callers

nothing calls this directly

Calls 1

pthread_mutex_timedlockFunction · 0.85

Tested by

no test coverage detected