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

Function close_the_fd

test/bthread_fd_unittest.cpp:444–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void* close_the_fd(void* arg) {
445 bthread_usleep(10000/*10ms*/);
446 EXPECT_EQ(0, bthread_close(*(int*)arg));
447 return NULL;
448}
449
450TEST(FDTest, invalid_epoll_events) {
451 errno = 0;

Callers

nothing calls this directly

Calls 2

bthread_usleepFunction · 0.85
bthread_closeFunction · 0.85

Tested by

no test coverage detected