please include function ping. static bool isThreadCancelled(Thread t) { ret eq("cancelled", ping_actions.get(t)); }