commit | d25473287772880838ea4519b050d0fd8514164d | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Thu Sep 19 15:12:06 2019 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Thu Sep 19 15:18:39 2019 +0100 |
tree | f5866b92fd5645f81590cc9ea63dea821405df6a | |
parent | 920879c63252ce78daab0baeef60b2eb25e828c1 [diff] |
DestinationsCollection: synchronize shuttingDown flag ShuttingDown flag is used to notify all other threads that the collection of replication destinations is about to be stopped. For instance, the auto-reload background thread should be informed to not reload the configuration during shutdowns. Having the flag as synchronized make sure that the flag is not read and written concurrently by the shutdown and reload threads. Change-Id: I6aa0a38d2c79a77befa5fde84da3377a1b0e7e93