Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 144 for Synchronized (0.56 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

      fun newClientBuilder(): OkHttpClient.Builder = newClient().newBuilder()
    
      @Synchronized private fun addEvent(event: String) {
        if (recordEvents) {
          logger?.info(event)
    
          synchronized(clientEventsList) {
            clientEventsList.add(event)
          }
        }
      }
    
      @Synchronized private fun initUncaughtException(throwable: Throwable) {
        if (uncaughtException == null) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/TestLogHandler.java

      @Override
      public void publish(@Nullable LogRecord record) {
        synchronized (lock) {
          if (record != null) {
            list.add(record);
          }
        }
      }
    
      @Override
      public void flush() {}
    
      @Override
      public void close() {}
    
      public void clear() {
        synchronized (lock) {
          list.clear();
        }
      }
    
      /** Returns a snapshot of the logged records. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      fun start(
        inetAddress: InetAddress,
        port: Int,
      ) {
        started = true
        delegate.start(inetAddress, port)
      }
    
      @Synchronized
      @Throws(IOException::class)
      fun shutdown() {
        delegate.close()
      }
    
      @Synchronized override fun after() {
        try {
          shutdown()
        } catch (e: IOException) {
          logger.log(Level.WARNING, "MockWebServer shutdown failed", e)
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 00:19:42 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Queues.java

       *
       * @param queue the queue to be wrapped in a synchronized view
       * @return a synchronized view of the specified queue
       * @since 14.0
       */
      @J2ktIncompatible // Synchronized
      public static <E extends @Nullable Object> Queue<E> synchronizedQueue(Queue<E> queue) {
        return Synchronized.queue(queue, null);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

       * greater than the max size if a background deletion is pending.
       */
      @Synchronized
      @Throws(IOException::class)
      fun size(): Long {
        initialize()
        return size
      }
    
      @Synchronized
      @Throws(IOException::class)
      internal fun completeEdit(
        editor: Editor,
        success: Boolean,
      ) {
        val entry = editor.entry
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/timer/TimeoutManager.java

         */
        public synchronized void clear() {
            timeoutTaskList.clear();
        }
    
        /**
         * Adds a {@link TimeoutTarget}.
         *
         * @param timeoutTarget the target
         * @param timeout the timeout duration
         * @param permanent whether the task is permanent
         * @return the {@link TimeoutTask}
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java

        startTask();
        try {
          command.run();
        } finally {
          endTask();
        }
      }
    
      @Override
      public boolean isShutdown() {
        synchronized (lock) {
          return shutdown;
        }
      }
    
      @Override
      public void shutdown() {
        synchronized (lock) {
          shutdown = true;
          if (runningTasks == 0) {
            lock.notifyAll();
          }
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Queues.java

       *
       * @param queue the queue to be wrapped in a synchronized view
       * @return a synchronized view of the specified queue
       * @since 14.0
       */
      @J2ktIncompatible // Synchronized
      public static <E extends @Nullable Object> Queue<E> synchronizedQueue(Queue<E> queue) {
        return Synchronized.queue(queue, null);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Tables.java

       *
       * @param table the table to be wrapped in a synchronized view
       * @return a synchronized view of the specified table
       * @since 22.0
       */
      @J2ktIncompatible // Synchronized
      public static <R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object>
          Table<R, C, V> synchronizedTable(Table<R, C, V> table) {
        return Synchronized.table(table, null);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

       * execution of tasks will stop until a call to this method is made.
       */
      @Override
      public void execute(Runnable task) {
        checkNotNull(task);
        Runnable submittedTask;
        long oldRunCount;
        synchronized (queue) {
          // If the worker is already running (or execute() on the delegate returned successfully, and
          // the worker has yet to start) then we don't need to start the worker.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top