/** * Unparks the given object, which must be a {@link Thread}. * * <p>See {@link java.util.concurrent.locks.LockSupport} for more * in-depth information of the behavior of this method.</p> * * @param obj non-null; the object to unpark */ public void unpark(Object obj) { if (obj instanceof Thread) { ((Thread) obj).unpark(); } else { throw new IllegalArgumentException("valid for Threads only"); } }
/** * Unparks the given object, which must be a {@link Thread}. * * <p>See {@link java.util.concurrent.locks.LockSupport} for more * in-depth information of the behavior of this method.</p> * * @param obj non-null; the object to unpark */ public void unpark(Object obj) { if (obj instanceof Thread) { ((Thread) obj).unpark(); } else { throw new IllegalArgumentException("valid for Threads only"); } }
/** * Unparks the given object, which must be a {@link Thread}. * * <p>See {@link java.util.concurrent.locks.LockSupport} for more * in-depth information of the behavior of this method.</p> * * @param obj non-null; the object to unpark */ public void unpark(Object obj) { if (obj instanceof Thread) { ((Thread) obj).unpark(); } else { throw new IllegalArgumentException("valid for Threads only"); } }
/** * Unparks the given object, which must be a {@link Thread}. * * <p>See {@link java.util.concurrent.locks.LockSupport} for more * in-depth information of the behavior of this method.</p> * * @param obj non-null; the object to unpark */ public void unpark(Object obj) { if (obj instanceof Thread) { ((Thread) obj).unpark(); } else { throw new IllegalArgumentException("valid for Threads only"); } }
/** * Unparks the given object, which must be a {@link Thread}. * * <p>See {@link java.util.concurrent.locks.LockSupport} for more * in-depth information of the behavior of this method.</p> * * @param obj non-null; the object to unpark */ public void unpark(Object obj) { if (obj instanceof Thread) { ((Thread) obj).unpark(); } else { throw new IllegalArgumentException("valid for Threads only"); } }
/** * Unparks the given object, which must be a {@link Thread}. * * <p>See {@link java.util.concurrent.locks.LockSupport} for more * in-depth information of the behavior of this method.</p> * * @param obj non-null; the object to unpark */ public void unpark(Object obj) { if (obj instanceof Thread) { ((Thread) obj).unpark(); } else { throw new IllegalArgumentException("valid for Threads only"); } }
/** * Unparks the given object, which must be a {@link Thread}. * * <p>See {@link java.util.concurrent.locks.LockSupport} for more * in-depth information of the behavior of this method.</p> * * @param obj non-null; the object to unpark */ public void unpark(Object obj) { if (obj instanceof Thread) { ((Thread) obj).unpark(); } else { throw new IllegalArgumentException("valid for Threads only"); } }