Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for PhantomReference (0.31 sec)

  1. android/guava/src/com/google/common/base/FinalizablePhantomReference.java

     * the License.
     */
    
    package com.google.common.base;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.lang.ref.PhantomReference;
    import java.lang.ref.ReferenceQueue;
    import javax.annotation.CheckForNull;
    
    /**
     * Phantom reference with a {@code finalizeReferent()} method which a background thread invokes
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/project/antbuilder/Cleanup.java

    import org.gradle.internal.classloader.ClassLoaderUtils;
    import org.gradle.internal.classpath.ClassPath;
    
    import java.lang.ref.PhantomReference;
    import java.lang.ref.ReferenceQueue;
    
    class Cleanup extends PhantomReference<CachedClassLoader> {
        enum Mode {
            DONT_CLOSE_CLASSLOADER,
            CLOSE_CLASSLOADER
        }
    
        private final ClassPath key;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 09 13:21:30 UTC 2016
    - 2.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/internal/Finalizer.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.base.internal;
    
    import java.lang.ref.PhantomReference;
    import java.lang.ref.Reference;
    import java.lang.ref.ReferenceQueue;
    import java.lang.ref.WeakReference;
    import java.lang.reflect.Constructor;
    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Aug 23 12:54:09 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/FinalizablePhantomReference.java

     * the License.
     */
    
    package com.google.common.base;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.lang.ref.PhantomReference;
    import java.lang.ref.ReferenceQueue;
    import javax.annotation.CheckForNull;
    
    /**
     * Phantom reference with a {@code finalizeReferent()} method which a background thread invokes
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/FinalizableReferenceQueue.java

      final PhantomReference<Object> frqRef;
    
      /** Whether or not the background thread started successfully. */
      final boolean threadStarted;
    
      /** Constructs a new queue. */
      public FinalizableReferenceQueue() {
        // We could start the finalizer lazily, but I'd rather it blow up early.
        queue = new ReferenceQueue<>();
        frqRef = new PhantomReference<>(this, queue);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/internal/Finalizer.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.base.internal;
    
    import java.lang.ref.PhantomReference;
    import java.lang.ref.Reference;
    import java.lang.ref.ReferenceQueue;
    import java.lang.ref.WeakReference;
    import java.lang.reflect.Constructor;
    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Aug 23 12:54:09 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

      final PhantomReference<Object> frqRef;
    
      /** Whether or not the background thread started successfully. */
      final boolean threadStarted;
    
      /** Constructs a new queue. */
      public FinalizableReferenceQueue() {
        // We could start the finalizer lazily, but I'd rather it blow up early.
        queue = new ReferenceQueue<>();
        frqRef = new PhantomReference<>(this, queue);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/project/antbuilder/ClassPathToClassLoaderCache.java

     * cleared before we have a chance to clean it up. So we use a PhantomReference to the cached class loader, in addition to the soft reference, to finalize the class loader before it gets kicked off
     * the cache.
     */
    public class ClassPathToClassLoaderCache implements Stoppable {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top