| 40 | } |
| 41 | |
| 42 | void Time::MsSleep(const int time_ms) { |
| 43 | timespec t; |
| 44 | t.tv_sec = time_ms / 1000; |
| 45 | t.tv_nsec = (time_ms % 1000) * 1000000; |
| 46 | |
| 47 | int ret = 0; |
| 48 | do { |
| 49 | ret = ::nanosleep(&t, &t); |
| 50 | } while (ret == -1 && errno == EINTR); |
| 51 | } |
| 52 | |
| 53 | class PoissonDistribution::PoissonDistributionImpl { |
| 54 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected