Closed Squadrick closed 3 years ago
First commit: 9f4f97458ad461d90584bfb2491e6d4da0c80edd
Second commit: 1129b7235496fb28de3ce3e441e3f3c7ddb7f2f9
shadesmar/rpc/channel.h
now supports sleeping using a condvar instead of polling for server request processing.
We can add running stats of time spent waiting under condvar, so that each successive sleep time will be inline with the actual sleeping time. This will prevent sleeping for too longer or waking up too early and wasting CPU cycles doing polls.