Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 161 for volatile (0.05 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

    @GwtIncompatible
    @J2ktIncompatible
    public class ClosingFutureFinishToValueAndCloserTest extends AbstractClosingFutureTest {
      private final ExecutorService finishToValueAndCloserExecutor = newSingleThreadExecutor();
      private volatile ValueAndCloser<?> valueAndCloser;
    
      @Override
      protected void tearDown() throws Exception {
        super.tearDown();
        assertWithMessage("finishToValueAndCloserExecutor was shut down")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/message/MessageFormatter.java

        /** Suffix of the resource bundle name corresponding to the message code */
        protected static final String MESSAGES = "Messages";
    
        /** Flag indicating initialization */
        protected static volatile boolean initialized;
    
        /**
         * Returns the message.
         *
         * @param messageCode
         *            Message code
         * @param args
         *            Arguments
         * @return Message
         */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/rdma/RdmaMemoryRegion.java

        protected final int remoteKey;
        /** Virtual address of the memory region */
        protected final long address;
        /** Flag indicating if the memory region is still valid */
        protected volatile boolean valid;
    
        /**
         * Create new RDMA memory region
         *
         * @param buffer memory buffer to register
         * @param access access permissions
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildStep.java

        final Collection<BuildStep> successors = new HashSet<>();
        final AtomicInteger status = new AtomicInteger();
        final AtomicBoolean skip = new AtomicBoolean();
        volatile Exception exception;
    
        public BuildStep(String name, MavenProject project, Lifecycle.Phase phase) {
            this.name = Objects.requireNonNull(name, "name cannot be null");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Apr 30 16:21:08 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

                Assertions.assertEquals(3, results[i].length, "Thread " + i + " got wrong array length");
            }
        }
    
        /**
         * Test that volatile fields ensure visibility across threads.
         * Verify that changes to lastLoadedTime are visible to all threads.
         */
        @Test
        public void test_volatileFields_visibility() throws Exception {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.2K bytes
    - Click Count (0)
  6. docs/smb3-features/06-witness-protocol-design.md

        public static final int WITNESS_REGISTER_NONE = 0x00000000;
        public static final int WITNESS_REGISTER_IP_NOTIFICATION = 0x00000001;
        
        // Registration state
        private volatile WitnessRegistrationState state;
        private volatile long lastHeartbeat;
        private int flags;
        
        public enum WitnessRegistrationState {
            REGISTERING,
            REGISTERED,
            UNREGISTERING,
            FAILED,
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 42K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/testing/FakeTicker.java

     * <p>This class is thread-safe.
     *
     * @author Jige Yu
     * @since 10.0
     */
    @NullMarked
    @GwtCompatible
    public class FakeTicker extends Ticker {
    
      private final AtomicLong nanos = new AtomicLong();
      private volatile long autoIncrementStepNanos;
    
      /** Advances the ticker value by {@code time} in {@code timeUnit}. */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 15:16:19 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

      private final CountDownLatch runLatch = new CountDownLatch(1);
      private final CountDownLatch taskLatch = new CountDownLatch(1);
      private final CountDownLatch listenerLatch = new CountDownLatch(1);
    
      private volatile boolean throwException = false;
    
      private final ListenableFutureTask<Integer> task =
          ListenableFutureTask.create(
              () -> {
                runLatch.countDown();
                taskLatch.await();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

        // A handle to the running task so that we can stop it when a shutdown has been requested.
        // These two fields are volatile because their values will be accessed from multiple threads.
        private volatile @Nullable Cancellable runningTask;
        private volatile @Nullable ScheduledExecutorService executorService;
    
        // This lock protects the task so we can ensure that none of the template methods (startUp,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 27.7K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/resources/checkstyle.xml

        The correct order is:
                public
                protected
                private
                abstract
                static
                final
                transient
                volatile
                synchronized
                native
                strictfp
        -->
        <module name="ModifierOrder" />
    
        <!-- Checks that we don't include modifier where they are implied. For
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 12:48:46 GMT 2021
    - 6K bytes
    - Click Count (0)
Back to Top