Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 303 for isSynchronized (0.12 seconds)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingRequest.java

        public DefaultModelBuildingRequest setPomFile(File pomFile) {
            this.pomFile = (pomFile != null) ? pomFile.getAbsoluteFile() : null;
    
            return this;
        }
    
        @Override
        public synchronized ModelSource getModelSource() {
            if (modelSource == null && pomFile != null) {
                modelSource = new FileModelSource(pomFile);
            }
            return modelSource;
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link Synchronized#deque} and {@link Queues#synchronizedDeque}.
     *
     * @author Kurt Alfred Kluever
     */
    @NullUnmarked
    public class SynchronizedDequeTest extends TestCase {
    
      protected Deque<String> create() {
        TestDeque<String> inner = new TestDeque<>();
        Deque<String> outer = Synchronized.deque(inner, inner.mutex);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jul 16 17:42:14 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java

            lock = new Object();
        }
    
        @Override
        public int read() throws IOException {
            int result = -1;
    
            synchronized (lock) {
                try {
                    while (used == 0) {
                        lock.wait();
                    }
                } catch (final InterruptedException ie) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/NtlmAuthenticator.java

         * this metho again will have no effect.
         *
         * @param a the authenticator to set as default
         */
    
        public synchronized static void setDefault(final NtlmAuthenticator a) {
            if (auth != null) {
                return;
            }
            auth = a;
        }
    
        /**
         * Gets the default NTLM authenticator.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/SynchronizedTableTest.java

          delegate.clear();
        }
    
        @Override
        public Collection<V> values() {
          assertTrue(Thread.holdsLock(mutex));
          /* TODO: verify that the Collection is also synchronized? */
          return delegate.values();
        }
    
        @Override
        public Set<Cell<R, C, V>> cellSet() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.cellSet();
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jul 16 17:42:14 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/MockHttp2Peer.kt

        check(socket == null)
        val socket = serverSocket!!.accept()!!
        this.socket = socket
    
        // Bail out now if this instance was closed while waiting for the socket to accept.
        synchronized(this) {
          if (executor.isShutdown) {
            socket.close()
            return
          }
        }
        val outputStream = socket.getOutputStream()
        val inputStream = socket.getInputStream()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  7. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/DeferredSocketAdapter.kt

        getDelegate(sslSocket)?.configureTlsExtensions(sslSocket, hostname, protocols)
      }
    
      override fun getSelectedProtocol(sslSocket: SSLSocket): String? = getDelegate(sslSocket)?.getSelectedProtocol(sslSocket)
    
      @Synchronized private fun getDelegate(sslSocket: SSLSocket): SocketAdapter? {
        if (this.delegate == null && socketAdapterFactory.matchesSocket(sslSocket)) {
          this.delegate = socketAdapterFactory.create(sslSocket)
        }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/properties/internal/SystemProperties.java

            final Properties copyProperties = new Properties();
            // guard against modification/removal of keys in the given properties (MNG-5670, MNG-6053, MNG-6105)
            synchronized (properties) {
                copyProperties.putAll(properties);
            }
            return copyProperties;
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  9. 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: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/smb1/SID.java

            DcerpcHandle handle = null;
            LsaPolicyHandle policyHandle = null;
    
            synchronized (sid_cache) {
                try {
                    handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName + "[\\PIPE\\lsarpc]", auth);
                    String server = authorityServerName;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.5K bytes
    - Click Count (0)
Back to Top