Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 318 for locking (0.35 sec)

  1. android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        exec.awaitTermination(100, MILLISECONDS);
      }
    
      /**
       * Tests that all listeners complete, even if they were added before or after the future was
       * finishing. Also acts as a concurrency test to make sure the locking is done correctly when a
       * future is finishing so that no listeners can be lost.
       */
      public void testAllListenersCompleteSuccessfully()
          throws InterruptedException, ExecutionException {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Suppliers.java

        @ParametricNullness
        // We set the field only once (during construction or deserialization).
        @SuppressWarnings("SynchronizeOnNonFinalField")
        public T get() {
          // A 2-field variant of Double Checked Locking.
          if (!initialized) {
            synchronized (lock) {
              if (!initialized) {
                T t = delegate.get();
                value = t;
                initialized = true;
                return t;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectionListener.kt

    import okhttp3.Route
    import okio.IOException
    
    /**
     * Listener for connection events. Extend this class to monitor the new connections and closes.
     *
     * All event methods must execute fast, without external locking, cannot throw exceptions,
     * attempt to mutate the event parameters, or be reentrant back into the client.
     * Any IO - writing to files or network should be done asynchronously.
     */
    internal abstract class ConnectionListener {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       * MoreExecutors#newDirectExecutorService} and subject to the same constraints.
       *
       * <p>Although all tasks are immediately executed in the thread that submitted the task, this
       * {@code ExecutorService} imposes a small locking overhead on each task submission in order to
       * implement shutdown and termination behavior.
       *
       * <p>Because of the nature of single-thread execution, the methods {@code scheduleAtFixedRate}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Suppliers.java

        @ParametricNullness
        // We set the field only once (during construction or deserialization).
        @SuppressWarnings("SynchronizeOnNonFinalField")
        public T get() {
          // A 2-field variant of Double Checked Locking.
          if (!initialized) {
            synchronized (lock) {
              if (!initialized) {
                T t = delegate.get();
                value = t;
                initialized = true;
                return t;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/pager/ReqHeaderPager.java

         */
        public String createdBy;
    
        /**
         * The timestamp when this request header was created.
         */
        public String createdTime;
    
        /**
         * The version number for optimistic locking.
         */
        public String versionNo;
    
        /**
         * Default constructor for ReqHeaderPager.
         * Initializes the pager with default values for page size and current page number.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/LazyLogger.java

      private volatile @Nullable Logger logger;
    
      LazyLogger(Class<?> ownerOfLogger) {
        this.loggerName = ownerOfLogger.getName();
      }
    
      Logger get() {
        /*
         * We use double-checked locking. We could the try racy single-check idiom, but that would
         * depend on Logger to not contain mutable state.
         *
         * We could use Suppliers.memoizingSupplier here, but I micro-optimized to this implementation
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/pager/UserPager.java

        public String name;
    
        /** User roles for search filtering */
        public String[] roles;
    
        /** User groups for search filtering */
        public String[] groups;
    
        /** Version number for optimistic locking */
        public String versionNo;
    
        /**
         * Clears all pagination state and search criteria.
         * Resets the pager to its initial state with default values.
         */
        public void clear() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        exec.awaitTermination(100, MILLISECONDS);
      }
    
      /**
       * Tests that all listeners complete, even if they were added before or after the future was
       * finishing. Also acts as a concurrency test to make sure the locking is done correctly when a
       * future is finishing so that no listeners can be lost.
       */
      public void testAllListenersCompleteSuccessfully()
          throws InterruptedException, ExecutionException {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/pager/GroupPager.java

        private int currentPageNumber;
    
        /** Group ID for search filtering. */
        public String id;
    
        /** Group name for search filtering. */
        public String name;
    
        /** Version number for optimistic locking. */
        public String versionNo;
    
        /**
         * Default constructor for GroupPager.
         * Initializes the pager with default values for pagination settings.
         */
        public GroupPager() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top