svoid cancelThreadUnlessCurrent(Thread t) { if (t == null || t == currentThread()) ret; cancelThread(t); }