Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for compareAndSwapObject (0.21 sec)

  1. guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

              newHead.execute();
              return;
            }
            // Try to make newHead the new head of the stack at runnables.
            newHead.next = oldHead;
          } while (!UNSAFE.compareAndSwapObject(this, HEAD_OFFSET, oldHead, newHead));
        }
    
        public void execute() {
          RunnableExecutorPair stack;
          do {
            stack = head;
            if (stack == null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

              newHead.execute();
              return;
            }
            // Try to make newHead the new head of the stack at runnables.
            newHead.next = oldHead;
          } while (!UNSAFE.compareAndSwapObject(this, HEAD_OFFSET, oldHead, newHead));
        }
    
        public void execute() {
          RunnableExecutorPair stack;
          do {
            stack = head;
            if (stack == null) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          return UNSAFE.compareAndSwapObject(future, WAITERS_OFFSET, expect, update);
        }
    
        /** Performs a CAS operation on the {@link #listeners} field. */
        @Override
        boolean casListeners(AbstractFuture<?> future, @CheckForNull Listener expect, Listener update) {
          return UNSAFE.compareAndSwapObject(future, LISTENERS_OFFSET, expect, update);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
Back to top