5758596061626364656667
public void run() { System.out.println(Thread.currentThread()); cflow.enter(); assertTrue(cflow.inCflow()); cflow.enter(); assertTrue(cflow.inCflow()); cflow.exit(); // leave the cflow in "inCflow" state is in this thread } }; t.start();
6566676869707172737475
} }; t.start(); System.out.println(Thread.currentThread()); assertFalse(cflow.inCflow()); } public static void main(String[] args) {