S
Size: a a a
S
U
U
S
U
if (this.isUpdateStarted && !this.updateInProgress.get()) {
this.isUpdateStarted = false;
// do things
}
if (this.isDirty) {
this.isDirty = false;
this.updateInProgress.set(true);
this.isUpdateStarted = true;
this.updateDiscardFlag.set(true);
executor.execute(() -> {
this.updateDiscardFlag.set(false);
// do things
if (this.updateDiscardFlag.get()) {
// discard everything
} else {
this.updateInProgress.set(false);
}
});
}
U
U
U
S
U
S
if (this.isUpdateStarted && !this.updateInProgress.get()) {
this.isUpdateStarted = false;
// do things
}
if (this.isDirty) {
this.isDirty = false;
this.updateInProgress.set(true);
this.isUpdateStarted = true;
this.updateDiscardFlag.set(true);
executor.execute(() -> {
this.updateDiscardFlag.set(false);
// do things
if (this.updateDiscardFlag.get()) {
// discard everything
} else {
this.updateInProgress.set(false);
}
});
}
S
U
U
U
U