Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SynchronizedDeque (0.27 sec)

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

       *
       * <p>It is imperative that the user manually synchronize on the returned deque when accessing any
       * of the deque's iterators:
       *
       * <pre>{@code
       * Deque<E> deque = Queues.synchronizedDeque(Queues.<E>newArrayDeque());
       * ...
       * deque.add(element);  // Needn't be in synchronized block
       * ...
       * synchronized (deque) {  // Must synchronize on deque!
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Queues.java

       *
       * <p>It is imperative that the user manually synchronize on the returned deque when accessing any
       * of the deque's iterators:
       *
       * <pre>{@code
       * Deque<E> deque = Queues.synchronizedDeque(Queues.<E>newArrayDeque());
       * ...
       * deque.add(element);  // Needn't be in synchronized block
       * ...
       * synchronized (deque) {  // Must synchronize on deque!
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top