Skip to content

Commit

Permalink
Make Snapshot item properties volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmos committed Jan 24, 2024
1 parent be5755d commit 043209c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ internal class SnapshotRecordedDataQueueItem(
recordedQueuedItemContext: RecordedQueuedItemContext,
internal val systemInformation: SystemInformation
) : RecordedDataQueueItem(recordedQueuedItemContext) {
internal var nodes = emptyList<Node>()
internal var isFinishedTraversal = false
@Volatile internal var nodes = emptyList<Node>()

@Volatile internal var isFinishedTraversal = false
internal var pendingJobs = AtomicInteger(0)

override fun isValid(): Boolean {
Expand Down

0 comments on commit 043209c

Please sign in to comment.