Make a couple more things const

This commit is contained in:
Tyler Neely 2022-08-01 11:08:17 +00:00
parent 69ea79a75e
commit 0c2cbb5461
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ void SimulatorHandle::ShutDown() {
cv_.notify_all();
}
bool SimulatorHandle::ShouldShutDown() {
bool SimulatorHandle::ShouldShutDown() const {
std::unique_lock<std::mutex> lock(mu_);
return should_shut_down_;
}

View File

@ -93,7 +93,7 @@ class SimulatorHandle {
void ShutDown();
bool ShouldShutDown();
bool ShouldShutDown() const;
template <Message Request, Message Response>
void SubmitRequest(Address to_address, Address from_address, uint64_t request_id, Request &&request, Duration timeout,