java.lang.ref.Reference.enqueueInternal()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(80)

本文整理了Java中java.lang.ref.Reference.enqueueInternal方法的一些代码示例,展示了Reference.enqueueInternal的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.enqueueInternal方法的具体详情如下:
包路径:java.lang.ref.Reference
类名称:Reference
方法名:enqueueInternal

Reference.enqueueInternal介绍

[英]Adds an object to its reference queue.
[中]将对象添加到其引用队列。

代码示例

代码示例来源:origin: robovm/robovm

/**
 * 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();
}

代码示例来源:origin: robovm/robovm

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();
    }
  }
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * 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();
}

代码示例来源:origin: ibinti/bugvm

/**
 * 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();
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * 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();
}

代码示例来源:origin: MobiVM/robovm

/**
 * 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();
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * 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();
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * 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();
}

代码示例来源:origin: MobiVM/robovm

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();
    }
  }
}

代码示例来源:origin: com.bugvm/bugvm-rt

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();
    }
  }
}

代码示例来源:origin: ibinti/bugvm

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();
    }
  }
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

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();
    }
  }
}

代码示例来源:origin: com.gluonhq/robovm-rt

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();
    }
  }
}

代码示例来源:origin: FlexoVM/flexovm

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();
    }
  }
}

相关文章