Skip to content

Commit 80ffb0a

Browse files
committed
Added volatile attribute - v1.0.0.8
1 parent 931fcb6 commit 80ffb0a

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

MarkDuplicates/HashedFiles.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class HashedFiles
2323
int _NodeCount;
2424
int _Allocated;
2525
int _Increment;
26-
int _NextNode;
27-
int _NodesProcessed;
28-
uint64_t _BytesProcessed;
26+
volatile int _NextNode;
27+
volatile int _NodesProcessed;
28+
volatile uint64_t _BytesProcessed;
2929
int HashCompare(const wstring& string1, const wstring& string2) const;
3030
int FileCompare(const wstring& string1, const wstring& string2) const;
3131
int DateCompare(const wstring& string1, const wstring& string2) const;

MarkDuplicates/MarkDuplicates.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
// Version 1.0.0.6, May 21, 2024, Updated version for release. Comment changes only.
7171
//
7272
// Version 1.0.0.7, May 25, 2024, Added elapsed time status and adjustable threads.
73+
//
74+
// Version 1.0.0.8, May 25, 2024, Added volatile attribute to thread critical identifiers.
7375

7476
#include "framework.h"
7577
#include "MarkDuplicates.h"

MarkDuplicates/MarkDuplicates.rc

0 Bytes
Binary file not shown.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,5 @@ Version 1.0.0.5, May 19, 2024, Added support for a thread pool.
7070
Version 1.0.0.6, May 21, 2024, Updated version for release. Comment changes only.
7171

7272
Version 1.0.0.7, May 25, 2024, Added elapsed time status and adjustable threads.
73+
74+
Version 1.0.0.8, May 25, 2024, Added volatile attribute to thread critical identifiers.

0 commit comments

Comments
 (0)