(Runnable command)
| 71 | } |
| 72 | |
| 73 | public void execute(Runnable command) { |
| 74 | int depth = incrementDepth(); |
| 75 | try { |
| 76 | if (depth <= MAX_DEPTH) { |
| 77 | command.run(); |
| 78 | } else { |
| 79 | backgroundExecutor.execute(command); |
| 80 | } |
| 81 | } finally { |
| 82 | decrementDepth(); |
| 83 | } |
| 84 | } |
| 85 | }; |
| 86 | private final Object lock = new Object(); |
| 87 | private boolean complete; |
no test coverage detected