MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / sleep_if

Method sleep_if

client/hstest.cpp:1002–1012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1000}
1001
1002void
1003hstest_thread::sleep_if()
1004{
1005 if (arg.sh.usleep) {
1006 struct timespec ts = {
1007 arg.sh.usleep / 1000000,
1008 (arg.sh.usleep % 1000000) * 1000
1009 };
1010 nanosleep(&ts, 0);
1011 }
1012}
1013
1014void
1015hstest_thread::set_timing(double time_spent)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected