Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Goldin (0.15 sec)

  1. android/guava/src/com/google/common/util/concurrent/Monitor.java

      /** Leaves this monitor. May be called only by a thread currently occupying this monitor. */
      public void leave() {
        final ReentrantLock lock = this.lock;
        try {
          // No need to signal if we will still be holding the lock when we return
          if (lock.getHoldCount() == 1) {
            signalNextWaiter();
          }
        } finally {
          lock.unlock(); // Will throw IllegalMonitorStateException if not held
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/Striped64.java

            valueOffset = UNSAFE.objectFieldOffset(ak.getDeclaredField("value"));
          } catch (Exception e) {
            throw new Error(e);
          }
        }
      }
    
      /**
       * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this
       * class, we use a suboptimal int[] representation to avoid introducing a new type that can impede
       * class-unloading when ThreadLocals are not removed.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

       * cancelled without a call to {@code cancel}, such as by calling {@code
       * setFuture(cancelledFuture)}.
       *
       * <p>Beware of completing a future while holding a lock. Its listeners may do slow work or
       * acquire other locks, risking deadlocks.
       */
      @CanIgnoreReturnValue
      @Override
      public boolean cancel(boolean mayInterruptIfRunning) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/Striped64.java

            valueOffset = UNSAFE.objectFieldOffset(ak.getDeclaredField("value"));
          } catch (Exception e) {
            throw new Error(e);
          }
        }
      }
    
      /**
       * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this
       * class, we use a suboptimal int[] representation to avoid introducing a new type that can impede
       * class-unloading when ThreadLocals are not removed.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/FileBackedOutputStream.java

      private static class MemoryOutput extends ByteArrayOutputStream {
        byte[] getBuffer() {
          return buf;
        }
    
        int getCount() {
          return count;
        }
      }
    
      /** Returns the file holding the data (possibly null). */
      @VisibleForTesting
      @CheckForNull
      synchronized File getFile() {
        return file;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * ListenableFuture} listeners, should take care not to do so while holding a lock. Additionally,
       * as a further line of defense, prefer not to perform any locking inside a task that will be run
       * under {@code directExecutor}: Not only might the wait for a lock be long, but if the running
       * thread was holding a lock, the listener may deadlock or break lock isolation.
       *
       * <p>This instance is equivalent to:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/MoreFilesTest.java

    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /**
     * Tests for {@link MoreFiles}.
     *
     * <p>Note: {@link MoreFiles#fileTraverser()} is tested in {@link MoreFilesFileTraverserTest}.
     *
     * @author Colin Decker
     */
    
    public class MoreFilesTest extends TestCase {
    
      public static TestSuite suite() {
        TestSuite suite = new TestSuite();
        suite.addTest(
            ByteSourceTester.tests(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteStreams.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Provides utility methods for working with byte arrays and I/O streams.
     *
     * @author Chris Nokleberg
     * @author Colin Decker
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class ByteStreams {
    
      private static final int BUFFER_SIZE = 8192;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

            }
            return toReturn;
          }
    
          @GuardedBy("lock")
          /*
           * The GuardedBy checker warns us that we're not holding cancellationDelegate.lock. But in
           * fact we are holding it because it is the same as this.lock, which we know we are holding,
           * thanks to @GuardedBy above. (cancellationDelegate.lock is initialized to this.lock in the
           * call to `new SupplantableFuture` below.)
           */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableTable.java

    import java.util.Comparator;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    
    /**
     * An implementation of {@link ImmutableTable} holding an arbitrary number of cells.
     *
     * @author Gregory Kick
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    abstract class RegularImmutableTable<R, C, V> extends ImmutableTable<R, C, V> {
      RegularImmutableTable() {}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 7.1K bytes
    - Viewed (0)
Back to top