tkalkirill commented on code in PR #1960:
URL: https://github.com/apache/ignite-3/pull/1960#discussion_r1172838253


##########
modules/core/src/main/java/org/apache/ignite/internal/util/PendingComparableValuesTracker.java:
##########
@@ -46,6 +51,13 @@
     /** Current value. */
     private volatile T current;
 
+    /** Prevents double closing. */
+    @SuppressWarnings("unused")
+    private volatile boolean closeGuard;

Review Comment:
   But already in this class they already use `VarHandle`, I think I have the 
right to use it too.



##########
modules/core/src/main/java/org/apache/ignite/internal/util/PendingComparableValuesTracker.java:
##########
@@ -46,6 +51,13 @@
     /** Current value. */
     private volatile T current;
 
+    /** Prevents double closing. */
+    @SuppressWarnings("unused")
+    private volatile boolean closeGuard;

Review Comment:
   But already in this class already use `VarHandle`, I think I have the right 
to use it too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to