summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/src/cache_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/policy/policy_external/src/cache_manager.cc')
-rw-r--r--src/components/policy/policy_external/src/cache_manager.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/policy/policy_external/src/cache_manager.cc b/src/components/policy/policy_external/src/cache_manager.cc
index 039ab5d3d0..164aa6bdf7 100644
--- a/src/components/policy/policy_external/src/cache_manager.cc
+++ b/src/components/policy/policy_external/src/cache_manager.cc
@@ -284,8 +284,8 @@ CacheManager::CacheManager(bool in_memory)
CacheManager::~CacheManager() {
LOG4CXX_AUTO_TRACE(logger_);
sync_primitives::AutoLock lock(backuper_locker_);
- backup_thread_->join();
- delete backup_thread_->delegate();
+ backup_thread_->Stop(threads::Thread::kThreadSoftStop);
+ delete backup_thread_->GetDelegate();
threads::DeleteThread(backup_thread_);
}
@@ -3156,7 +3156,7 @@ void CacheManager::InitBackupThread() {
LOG4CXX_AUTO_TRACE(logger_);
backuper_ = new BackgroundBackuper(this);
backup_thread_ = threads::CreateThread("Backup thread", backuper_);
- backup_thread_->start();
+ backup_thread_->Start();
}
const PolicySettings& CacheManager::get_settings() const {