Releases the lock.
()
| 91 | * Releases the lock. |
| 92 | */ |
| 93 | public void unlock() { |
| 94 | if (mLockChannel != null) { |
| 95 | try { |
| 96 | mLockChannel.close(); |
| 97 | } catch (IOException ignored) { } |
| 98 | } |
| 99 | mThreadLock.unlock(); |
| 100 | } |
| 101 | |
| 102 | private static Lock getThreadLock(String key) { |
| 103 | synchronized (sThreadLocks) { |
no test coverage detected