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
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/include/jcr.h')
-rw-r--r--core/src/include/jcr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/include/jcr.h b/core/src/include/jcr.h
index 13270d394..931c4d38e 100644
--- a/core/src/include/jcr.h
+++ b/core/src/include/jcr.h
@@ -165,7 +165,7 @@ class JobControlRecord {
uint64_t LastJobBytes{}; /**< Last sample number bytes */
uint64_t ReadBytes{}; /**< Bytes read -- before compression */
FileId_t FileId{}; /**< Last FileId used */
- volatile int32_t JobStatus{}; /**< ready, running, blocked, terminated */
+ std::atomic<int32_t> JobStatus{}; /**< ready, running, blocked, terminated */
int32_t JobPriority{}; /**< Job priority */
time_t sched_time{}; /**< Job schedule time, i.e. when it should start */
time_t initial_sched_time{}; /**< Original sched time before any reschedules are done */