Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 219 for isSynchronized (0.11 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/DateFormatting.kt

      if (position.index == length) {
        // STANDARD_DATE_FORMAT must match exactly; all text must be consumed, e.g. no ignored
        // non-standard trailing "+01:00". Those cases are covered below.
        return result
      }
      synchronized(BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS) {
        for (i in 0 until BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS.size) {
          var format: DateFormat? = BROWSER_COMPATIBLE_DATE_FORMATS[i]
          if (format == null) {
            format =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

                if (name.startsWith(concurrentPackage)
                    // Use other classloader for ListenableFuture, so that the objects can interact
                    && !ListenableFuture.class.getName().equals(name)) {
                  synchronized (loadedClasses) {
                    Class<?> toReturn = loadedClasses.get(name);
                    if (toReturn == null) {
                      toReturn = super.findClass(name);
                      loadedClasses.put(name, toReturn);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

                if (name.startsWith(concurrentPackage)
                    // Use other classloader for ListenableFuture, so that the objects can interact
                    && !ListenableFuture.class.getName().equals(name)) {
                  synchronized (loadedClasses) {
                    Class<?> toReturn = loadedClasses.get(name);
                    if (toReturn == null) {
                      toReturn = super.findClass(name);
                      loadedClasses.put(name, toReturn);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/LockHeldAssertingSet.java

        assertTrue(Thread.holdsLock(mutex));
        return super.isEmpty();
      }
    
      /*
       * We don't assert that the lock is held during calls to iterator(), stream(), and spliterator:
       * `Synchronized` doesn't guarantee that it will hold the mutex for those calls because callers
       * are responsible for taking the mutex themselves:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            final int[] callCount = { 0 };
    
            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    synchronized (lock) {
                        callCount[0]++;
                        if (callCount[0] % 2 == 0) {
                            throw new RuntimeException("Even call error");
                        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

      static class Key {
        private final int value;
        private WeakReference<String> toString;
    
        Key(int value) {
          this.value = value;
        }
    
        @Override
        public synchronized String toString() {
          String s;
          if (toString != null) {
            s = toString.get();
            if (s != null) {
              return s;
            }
          }
          s = Integer.toString(value);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/Monitor.java

     *   // do other things since the monitor was not available
     * }
     * }
     *
     * <h2>Comparison with {@code synchronized} and {@code ReentrantLock}</h2>
     *
     * <p>The following examples show a simple threadsafe holder expressed using {@code synchronized},
     * {@link ReentrantLock}, and {@code Monitor}.
     *
     * <h3>{@code synchronized}</h3>
     *
     * <p>This version is the fewest lines of code, largely because the synchronization mechanism used
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/UniAddress.java

                    this.uhe = uhe;
                } catch (final Exception ex) {
                    this.uhe = new UnknownHostException(ex.getMessage());
                } finally {
                    synchronized (sem) {
                        sem.count--;
                        sem.notify();
                    }
                }
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                    synchronized (result) {
                        result.addMissingArtifact(artifact);
                    }
                } catch (ArtifactResolutionException e) {
                    // This is really a wagon TransferFailedException so something went wrong after we successfully
                    // retrieved the metadata.
    
                    synchronized (result) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 25K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/score/QueryRescorerTest.java

            }
        }
    
        public void test_evaluate_concurrency() {
            queryRescorer = new QueryRescorer() {
                private int callCount = 0;
    
                @Override
                public synchronized RescorerBuilder<?> evaluate(Map<String, Object> params) {
                    callCount++;
                    if (callCount % 2 == 0) {
                        return createMockRescorerBuilder();
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top