Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgRepositoryLock.java @ 605:c56edf42be64
Commit: update active bookmark with new revision
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 06 May 2013 20:28:21 +0200 |
parents | 3cd3c3d37432 |
children | f41dd9a3b8af |
comparison
equal
deleted
inserted
replaced
604:c3505001a42a | 605:c56edf42be64 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012 TMate Software Ltd | 2 * Copyright (c) 2012-2013 TMate Software Ltd |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
5 * it under the terms of the GNU General Public License as published by | 5 * it under the terms of the GNU General Public License as published by |
6 * the Free Software Foundation; version 2 of the License. | 6 * the Free Software Foundation; version 2 of the License. |
7 * | 7 * |
97 return use > 0; | 97 return use > 0; |
98 } | 98 } |
99 | 99 |
100 /** | 100 /** |
101 * Perform actual locking. Waits for timeout (if specified at construction time) | 101 * Perform actual locking. Waits for timeout (if specified at construction time) |
102 * before throwing {@link HgInvalidStateException} in case lock is not available | 102 * before throwing {@link HgRepositoryLockException} in case lock is not available |
103 * immediately. | 103 * immediately. |
104 * | 104 * |
105 * <p>Multiple calls are possible, but corresponding number of {@link #release()} | 105 * <p>Multiple calls are possible, but corresponding number of {@link #release()} |
106 * calls shall be made. | 106 * calls shall be made. |
107 * @throws HgRepositoryLockException if failed to grab a lock | 107 * @throws HgRepositoryLockException if failed to grab a lock |