/** * Increments active tasks count. * * @throws GridInterruptedException If thread has been interrupted. */ private void incrementActiveTasks() throws GridInterruptedException { U.acquire(sem); }