| 170 | } |
| 171 | |
| 172 | void PoissonDistribution :: MsSleep(const int time_ms) |
| 173 | { |
| 174 | timespec t; |
| 175 | t.tv_sec = time_ms / 1000; |
| 176 | t.tv_nsec = (time_ms % 1000) * 1000000; |
| 177 | |
| 178 | int ret = 0; |
| 179 | do |
| 180 | { |
| 181 | ret = ::nanosleep(&t, &t); |
| 182 | } while (ret == -1 && errno == EINTR); |
| 183 | } |
| 184 | |
| 185 | } // namespace utils |
| 186 |
nothing calls this directly
no outgoing calls
no test coverage detected