The requirement to call refresh(), and the fact that refresh() blocks until every thread that has recorded an event in the past records another event is a problem. We should mitigate this by having the library call refresh_timeout() regularly during operation so that the user doesn't have to do it. Alternatively, hdrhistogram's Recorder would have to be change to not require the whole refresh business in the first place..
The requirement to call
refresh()
, and the fact thatrefresh()
blocks until every thread that has recorded an event in the past records another event is a problem. We should mitigate this by having the library callrefresh_timeout()
regularly during operation so that the user doesn't have to do it. Alternatively,hdrhistogram
'sRecorder
would have to be change to not require the wholerefresh
business in the first place..