Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: java/com/l2jserver/gameserver/util/L2TIntObjectHashMap.java
- ===================================================================
- --- java/com/l2jserver/gameserver/util/L2TIntObjectHashMap.java (revision 5058)
- +++ java/com/l2jserver/gameserver/util/L2TIntObjectHashMap.java (working copy)
- @@ -160,28 +160,32 @@
- @Override
- public V[] values()
- {
- - _readLock.lock();
- + if (!_tempWritesLockDisable)
- + _readLock.lock();
- try
- {
- return super.values();
- }
- finally
- {
- - _readLock.unlock();
- + if (!_tempWritesLockDisable)
- + _readLock.unlock();
- }
- }
- @Override
- public V[] values(V[] arg0)
- {
- - _readLock.lock();
- + if (!_tempWritesLockDisable)
- + _readLock.lock();
- try
- {
- return super.values(arg0);
- }
- finally
- {
- - _readLock.unlock();
- + if (!_tempWritesLockDisable)
- + _readLock.unlock();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement