Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Add(TKey key, TValue value)
- {
- int poolIndex = GetPoolIndex(key);
- this.locks[poolIndex].EnterWriteLock();
- try
- {
- this.pools[poolIndex].Add(key, value);
- }
- finally
- {
- this.locks[poolIndex].ExitWriteLock();
- }
- }
Add Comment
Please, Sign In to add comment