MCPcopy Create free account
hub / github.com/java-native-access/jna / register

Method register

src/com/sun/jna/internal/Cleaner.java:55–59  ·  view source on GitHub ↗
(Object obj, Runnable cleanupTask)

Source from the content-addressed store, hash-verified

53 }
54
55 public synchronized Cleanable register(Object obj, Runnable cleanupTask) {
56 // The important side effect is the PhantomReference, that is yielded
57 // after the referent is GCed
58 return add(new CleanerRef(this, obj, referenceQueue, cleanupTask));
59 }
60
61 private synchronized CleanerRef add(CleanerRef ref) {
62 synchronized (referenceQueue) {

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected