Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 326 for synchronize (0.47 seconds)

  1. src/main/java/jcifs/smb/SmbCopyUtil.java

                throw this.e;
            }
        }
    
        synchronized void write(final byte[] buffer, final int len, final SmbFileOutputStream d) {
            this.b = buffer;
            this.n = len;
            this.out = d;
            this.ready = false;
            notify();
        }
    
        @Override
        public void run() {
            synchronized (this) {
                try {
                    for (;;) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbSessionImpl.java

                    log.debug("Usage dropped to zero, release connection " + this.transport);
                }
                // Ensure atomic cleanup of all resources
                synchronized (this) {
                    // Double-check usage count within synchronized block
                    if (this.usageCount.get() != 0) {
                        return; // Another thread acquired the session
                    }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

            void testReceived() throws InterruptedException {
                CountDownLatch latch = new CountDownLatch(1);
    
                Thread waiter = new Thread(() -> {
                    synchronized (response) {
                        try {
                            if (!response.isReceived()) {
                                response.wait(1000);
                            }
                            latch.countDown();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/core/exception/InstantiationRuntimeException.java

            super("ECL0041", asArray(targetClass.getName(), cause), cause);
            this.targetClass = targetClass;
        }
    
        @Override
        public synchronized InstantiationRuntimeException initCause(final Throwable cause) {
            return (InstantiationRuntimeException) super.initCause(cause);
        }
    
        /**
         * Returns the target class.
         *
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/netbios/NbtAddress.java

                }
            }
            obj = getCachedAddress(name);
            if (obj == null) {
                synchronized (LOOKUP_TABLE) {
                    LOOKUP_TABLE.put(name, name);
                }
            }
    
            return obj;
        }
    
        private static void updateLookupTable(final Name name) {
            synchronized (LOOKUP_TABLE) {
                LOOKUP_TABLE.remove(name);
                LOOKUP_TABLE.notifyAll();
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.7K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/beans/factory/BeanDescFactory.java

            }
            return beanDesc;
        }
    
        /**
         * Performs initialization.
         */
        public static void initialize() {
            synchronized (BeanDescFactory.class) {
                if (!initialized) {
                    DisposableUtil.add(BeanDescFactory::clear);
                    initialized = true;
                }
            }
        }
    
        /**
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/TransTransactNamedPipeResponse.java

        int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            if (pipe.pipeIn != null) {
                final TransactNamedPipeInputStream in = (TransactNamedPipeInputStream) pipe.pipeIn;
                synchronized (in.lock) {
                    in.receive(buffer, bufferIndex, len);
                    in.lock.notify();
                }
            }
            return len;
        }
    
        @Override
        public String toString() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/collection/LruHashMap.java

     * It extends {@link LinkedHashMap} without synchronization. If multiple threads access
     * an instance concurrently, and at least one thread modifies the map structurally,
     * it must be synchronized externally.
     * </p>
     * <p>
     * For thread-safe usage, wrap with {@link java.util.Collections#synchronizedMap(Map)}:
     * </p>
     * <pre>
     * Map&lt;K, V&gt; syncMap = Collections.synchronizedMap(new LruHashMap&lt;&gt;(100));
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 3K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

                // Test implementation
            }
        }
    
        // ========== Thread Safety Tests for getDataStoreNames() ==========
    
        /**
         * Test concurrent getDataStoreNames calls to verify synchronized method works correctly.
         * Multiple threads call getDataStoreNames() simultaneously.
         */
        @Test
        public void test_getDataStoreNames_concurrentAccess() 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)
  10. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

      private volatile @Nullable Object mutexDoNotUseDirectly;
    
      private Object mutex() {
        Object mutex = mutexDoNotUseDirectly;
        if (mutex == null) {
          synchronized (this) {
            mutex = mutexDoNotUseDirectly;
            if (mutex == null) {
              mutexDoNotUseDirectly = mutex = new Object();
            }
          }
        }
        return mutex;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:05:27 GMT 2025
    - 21.8K bytes
    - Click Count (0)
Back to Top