Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for notifyAll (0.2 sec)

  1. okhttp/src/test/java/okhttp3/RecordingCallback.kt

        responses.add(RecordedResponse(call.request(), null, null, null, e))
        (this as Object).notifyAll()
      }
    
      @Synchronized
      override fun onResponse(
        call: Call,
        response: Response,
      ) {
        val body = response.body.string()
        responses.add(RecordedResponse(call.request(), response, null, body, null))
        (this as Object).notifyAll()
      }
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java

        synchronized (lock) {
          return shutdown;
        }
      }
    
      @Override
      public void shutdown() {
        synchronized (lock) {
          shutdown = true;
          if (runningTasks == 0) {
            lock.notifyAll();
          }
        }
      }
    
      // See newDirectExecutorService javadoc for unusual behavior of this method.
      @Override
      public List<Runnable> shutdownNow() {
        shutdown();
        return Collections.emptyList();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

            if ( isAsync() && getStatus() == NtStatus.NT_STATUS_PENDING ) {
                synchronized ( this ) {
                    notifyAll();
                }
                return;
            }
            this.received = true;
            synchronized ( this ) {
                notifyAll();
            }
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 7.4K bytes
    - Viewed (0)
  4. samples/slack/src/main/java/okhttp3/slack/SlackClient.java

      }
    
      /** Set the OAuth session for this client. */
      public synchronized void initOauthSession(OAuthSession session) {
        this.session = session;
        this.notifyAll();
      }
    
      /** Waits for an OAuth session for this client to be set. */
      public synchronized void awaitAccessToken(Timeout timeout) throws InterruptedIOException {
        while (session == null) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/TestLocking.java

                    }
    
    if (delay > 2)
    System.out.println("delay=" + delay);
                    Thread.sleep(delay);
                } while (delay > 2);
    
                synchronized (t) {
                    t.notifyAll();
                }
    //System.out.println("numComplete=" + t.numComplete + ",numThreads=" + t.numThreads);
            }
    
            for (ti = 0; ti < t.numThreads; ti++) {
                threads[ti].join();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContext.java

                if (!set) {
                    synchronized (this) {
                        if (!set) {
                            this.set = true;
                            this.model = supplier.get();
                            this.notifyAll();
                        }
                    }
                }
                return model;
            }
        }
    
        DefaultTransformerContext(ModelLocator modelLocator) {
            this.modelLocator = modelLocator;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/util/transport/Transport.java

                            doSkip();
                        } else {
                            doRecv( response );
                            response.isReceived = true;
                            notifyAll();
                        }
                    }
                } catch( Exception ex ) {
                    String msg = ex.getMessage();
                    boolean timeout = msg != null && msg.equals( "Read timed out" );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbTree.java

                    }
                }
            }
            inDfs = false;
            inDomainDfs = false;
    
            connectionState = 0;
    
            session.transport.notifyAll();
    }
        }
    
        public String toString() {
            return "SmbTree[share=" + share +
                ",service=" + service +
                ",tid=" + tid +
                ",inDfs=" + inDfs +
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 8K bytes
    - Viewed (0)
Back to top