/** * Forces the reference object to be enqueued if it has been associated with * a queue. * * @return {@code true} if this call has caused the {@code Reference} to * become enqueued, or {@code false} otherwise */ public boolean enqueue() { return enqueueInternal(); }
private void enqueue(Reference<?> list) { while (list != null) { Reference<?> reference; // pendingNext is owned by the GC so no synchronization is required if (list == list.pendingNext) { reference = list; reference.pendingNext = null; list = null; } else { reference = list.pendingNext; list.pendingNext = reference.pendingNext; reference.pendingNext = null; } reference.enqueueInternal(); } } }
/** * Forces the reference object to be enqueued if it has been associated with * a queue. * * @return {@code true} if this call has caused the {@code Reference} to * become enqueued, or {@code false} otherwise */ public boolean enqueue() { return enqueueInternal(); }
/** * Forces the reference object to be enqueued if it has been associated with * a queue. * * @return {@code true} if this call has caused the {@code Reference} to * become enqueued, or {@code false} otherwise */ public boolean enqueue() { return enqueueInternal(); }
/** * Forces the reference object to be enqueued if it has been associated with * a queue. * * @return {@code true} if this call has caused the {@code Reference} to * become enqueued, or {@code false} otherwise */ public boolean enqueue() { return enqueueInternal(); }
/** * Forces the reference object to be enqueued if it has been associated with * a queue. * * @return {@code true} if this call has caused the {@code Reference} to * become enqueued, or {@code false} otherwise */ public boolean enqueue() { return enqueueInternal(); }
/** * Forces the reference object to be enqueued if it has been associated with * a queue. * * @return {@code true} if this call has caused the {@code Reference} to * become enqueued, or {@code false} otherwise */ public boolean enqueue() { return enqueueInternal(); }
/** * Forces the reference object to be enqueued if it has been associated with * a queue. * * @return {@code true} if this call has caused the {@code Reference} to * become enqueued, or {@code false} otherwise */ public boolean enqueue() { return enqueueInternal(); }
private void enqueue(Reference<?> list) { while (list != null) { Reference<?> reference; // pendingNext is owned by the GC so no synchronization is required if (list == list.pendingNext) { reference = list; reference.pendingNext = null; list = null; } else { reference = list.pendingNext; list.pendingNext = reference.pendingNext; reference.pendingNext = null; } reference.enqueueInternal(); } } }
private void enqueue(Reference<?> list) { while (list != null) { Reference<?> reference; // pendingNext is owned by the GC so no synchronization is required if (list == list.pendingNext) { reference = list; reference.pendingNext = null; list = null; } else { reference = list.pendingNext; list.pendingNext = reference.pendingNext; reference.pendingNext = null; } reference.enqueueInternal(); } } }
private void enqueue(Reference<?> list) { while (list != null) { Reference<?> reference; // pendingNext is owned by the GC so no synchronization is required if (list == list.pendingNext) { reference = list; reference.pendingNext = null; list = null; } else { reference = list.pendingNext; list.pendingNext = reference.pendingNext; reference.pendingNext = null; } reference.enqueueInternal(); } } }
private void enqueue(Reference<?> list) { while (list != null) { Reference<?> reference; // pendingNext is owned by the GC so no synchronization is required if (list == list.pendingNext) { reference = list; reference.pendingNext = null; list = null; } else { reference = list.pendingNext; list.pendingNext = reference.pendingNext; reference.pendingNext = null; } reference.enqueueInternal(); } } }
private void enqueue(Reference<?> list) { while (list != null) { Reference<?> reference; // pendingNext is owned by the GC so no synchronization is required if (list == list.pendingNext) { reference = list; reference.pendingNext = null; list = null; } else { reference = list.pendingNext; list.pendingNext = reference.pendingNext; reference.pendingNext = null; } reference.enqueueInternal(); } } }
private void enqueue(Reference<?> list) { while (list != null) { Reference<?> reference; // pendingNext is owned by the GC so no synchronization is required if (list == list.pendingNext) { reference = list; reference.pendingNext = null; list = null; } else { reference = list.pendingNext; list.pendingNext = reference.pendingNext; reference.pendingNext = null; } reference.enqueueInternal(); } } }