MCPcopy Create free account
hub / github.com/apache/thrift / interruptWorker

Function interruptWorker

lib/cpp/test/TPipeInterruptTest.cpp:61–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static void interruptWorker(TPipeServer *pipe) {
62 boost::this_thread::sleep(boost::posix_time::milliseconds(10));
63 pipe->interrupt();
64}
65
66BOOST_AUTO_TEST_CASE(stress_pipe_accept_interruption) {
67 int interruptIters = 10;

Callers

nothing calls this directly

Calls 1

interruptMethod · 0.45

Tested by

no test coverage detected