Advertisement
Nik

Untitled

Nik
Nov 8th, 2011
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.88 KB | None | 0 0
  1. Index: java/com/l2jserver/gameserver/util/L2TIntObjectHashMap.java
  2. ===================================================================
  3. --- java/com/l2jserver/gameserver/util/L2TIntObjectHashMap.java (revision 5058)
  4. +++ java/com/l2jserver/gameserver/util/L2TIntObjectHashMap.java (working copy)
  5. @@ -160,28 +160,32 @@
  6.     @Override
  7.     public V[] values()
  8.     {
  9. -       _readLock.lock();
  10. +       if (!_tempWritesLockDisable)
  11. +           _readLock.lock();
  12.         try
  13.         {
  14.             return super.values();
  15.         }
  16.         finally
  17.         {
  18. -           _readLock.unlock();
  19. +           if (!_tempWritesLockDisable)
  20. +               _readLock.unlock();
  21.         }
  22.     }
  23.    
  24.     @Override
  25.     public V[] values(V[] arg0)
  26.     {
  27. -       _readLock.lock();
  28. +       if (!_tempWritesLockDisable)
  29. +           _readLock.lock();
  30.         try
  31.         {
  32.             return super.values(arg0);
  33.         }
  34.         finally
  35.         {
  36. -           _readLock.unlock();
  37. +           if (!_tempWritesLockDisable)
  38. +               _readLock.unlock();
  39.         }
  40.     }
  41.    
  42.  
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement