Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAlaa Eddine Elamri <alaeddine.elamri@bareos.com>2022-10-21 17:56:49 +0300
committerAndreas Rogge <andreas.rogge@bareos.com>2022-11-07 19:16:28 +0300
commitdee4a25256fdabc8ab601f3714eba834e395d587 (patch)
tree232010c290a102ea2c1179db8778cca10fe4938e /core
parent7f903c52bf86c154de67d6d0b4058d0fc797351c (diff)
jcr_private: sd_msg_thread_done from volatile to atomic
Diffstat (limited to 'core')
-rw-r--r--core/src/dird/jcr_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/dird/jcr_private.h b/core/src/dird/jcr_private.h
index d72e09e17..810ea58d9 100644
--- a/core/src/dird/jcr_private.h
+++ b/core/src/dird/jcr_private.h
@@ -139,7 +139,7 @@ struct JobControlRecordPrivate {
int32_t reschedule_count{}; /**< Number of times rescheduled */
int32_t FDVersion{}; /**< File daemon version number */
int64_t spool_size{}; /**< Spool size for this job */
- volatile bool sd_msg_thread_done{}; /**< Set when Storage message thread done */
+ std::atomic<bool> sd_msg_thread_done{}; /**< Set when Storage message thread done */
bool IgnoreDuplicateJobChecking{}; /**< Set in migration jobs */
bool IgnoreLevelPoolOverrides{}; /**< Set if a cmdline pool was specified */
bool IgnoreClientConcurrency{}; /**< Set in migration jobs */