diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-10-04 19:51:54 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-28 02:01:57 +0100 |
| commit | b2316b00e6bf6e8f2ae32b62727d8ac8f7d9f295 (patch) | |
| tree | c2a2ad65a919baac3e427cabf5572ae3185eaebe /src/lib/grok/messenger.h | |
| parent | aba61922b8163a3aae3c8bed1ad50bec7062c177 (diff) | |
Cleanup: whitespace to reduce the diff.
Diffstat (limited to 'src/lib/grok/messenger.h')
| -rw-r--r-- | src/lib/grok/messenger.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/grok/messenger.h b/src/lib/grok/messenger.h index 51526aee3..eb2fe9560 100644 --- a/src/lib/grok/messenger.h +++ b/src/lib/grok/messenger.h @@ -585,16 +585,19 @@ struct Messenger bool waitForClientInit() { - if(_initialized) + if (_initialized) { return true; - else if (_shutdown) + } else if (_shutdown) { return false; + } std::unique_lock<std::mutex> lk(shutdownMutex_); - if(_initialized) + + if (_initialized) { return true; - else if (_shutdown) + } else if (_shutdown) { return false; + } while (true) { if (clientInitializedCondition_.wait_for(lk, std::chrono::seconds(1), [this]{ return _initialized || _shutdown; })) { |
