Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 256 for Synchronized (0.08 sec)

  1. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       * safe to do so. The exact circumstances under which a copy will or will not be performed are
       * undocumented and subject to change.
       *
       * <p>This method is safe to use even when {@code sortedMultiset} is a synchronized or concurrent
       * collection that is currently being modified by another thread.
       *
       * @throws NullPointerException if {@code sortedMultiset} or any of its elements is null
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                            byte[] plaintext = message.getBytes();
                            long sessionId = (threadId * 1000L) + i;
    
                            synchronized (encrypted) {
                                byte[] encryptedData = context.encryptMessage(plaintext, sessionId);
                                messages.add(message);
                                encrypted.add(encryptedData);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbFile.java

            }
    
            synchronized void write(final byte[] b, final int n, final SmbFile dest, final long off) {
                this.b = b;
                this.n = n;
                this.dest = dest;
                this.off = off;
                ready = false;
                notify();
            }
    
            @Override
            public void run() {
                synchronized (this) {
                    try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  4. CHANGELOG.md

    new APIs so we can get out of alpha.
    
     *  New: Support Java 21's virtual threads (‘OpenJDK Project Loom’). We changed OkHttp's internals
        to use `Lock` and `Condition` instead of `synchronized` for best resource utilization.
    
     *  New: Switch our Internationalized Domain Name (IDN) implementation to [UTS #46 Nontransitional
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (1)
  5. guava/src/com/google/common/util/concurrent/ClosingFuture.java

          } finally {
            add(newCloseables, directExecutor());
          }
        }
    
        @Override
        public void close() {
          if (closed) {
            return;
          }
          synchronized (this) {
            if (closed) {
              return;
            }
            closed = true;
          }
          for (Map.Entry<AutoCloseable, Executor> entry : entrySet()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 98.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFile.java

        }
    
        /**
         * {@inheritDoc}
         * Optimized to provide better resource cleanup with caching benefits.
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        public synchronized void close() {
            final SmbTreeHandleImpl th = this.treeHandle;
            if (th != null) {
                this.treeHandle = null;
    
                // Optimization: For non-strict lifecycle, delay tree handle closure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        private val responseDequeuedLatches: List<CountDownLatch>,
        private val requestCanceledLatches: List<CountDownLatch>,
      ) : QueueDispatcher() {
        private var responseIndex = 0
    
        @Synchronized
        override fun dispatch(request: RecordedRequest): MockResponse {
          // This guarantees a deterministic sequence when handling the canceled request:
          // 1. Server reads request and dequeues first response
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

      }
    
      private fun createNewCacheWithSize(maxSize: Int) {
        cache =
          DiskLruCache(filesystem, cacheDir, appVersion, 2, maxSize.toLong(), taskRunner).also {
            toClose.add(it)
          }
        synchronized(cache) { cache.initialize() }
      }
    
      fun setUp(
        baseFilesystem: FileSystem,
        windows: Boolean,
      ) {
        this.cacheDir =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 75.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         * read operations anyway:
         *
         * - All (unsynchronized) read operations must first read the "count" field, and should not
         * look at table entries if it is 0.
         *
         * - All (synchronized) write operations should write to the "count" field after structurally
         * changing any bin. The operations must not take any action that could even momentarily
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 90K bytes
    - Viewed (0)
  10. api/maven-api-model/src/main/mdo/maven.mdo

         * @return a Map of plugins field with {@code Plugins#getKey()} as key
         * @see Plugin#getKey()
         */
        public Map<String, Plugin> getPluginsAsMap() {
            if (pluginMap == null) {
                synchronized (this) {
                    if (pluginMap == null) {
                        pluginMap = ImmutableCollections.copy(plugins.stream().collect(
                                java.util.stream.Collectors.toMap(
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Aug 07 14:32:16 UTC 2025
    - 132.7K bytes
    - Viewed (0)
Back to top