(String[] args)
| 11 | public class AllNativeLocks { |
| 12 | |
| 13 | public static void main(String[] args) throws InterruptedException { |
| 14 | final boolean once = args.length > 0 && args[0].equals("once"); |
| 15 | |
| 16 | NativeLock.class.getName(); |
| 17 | Thread.sleep(500); |
| 18 | |
| 19 | if (once) { |
| 20 | runAllLockTypesOnce(); |
| 21 | } else { |
| 22 | while (true) { |
| 23 | runAllLockTypesOnce(); |
| 24 | Thread.sleep(100); |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | private static void runAllLockTypesOnce() throws InterruptedException { |
| 30 | List<Thread> threads = new ArrayList<>(); |
nothing calls this directly
no test coverage detected