diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-02 22:59:27 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-02 22:59:27 -0400 |
| commit | fa884f3fead68522b45276661528ba39d42dcad1 (patch) | |
| tree | 28c77ebff10cae0e72bad5ff08815a9205ef0a67 /MediaBrowser.Common/IO/FileSystemRepository.cs | |
| parent | 713afcf6755b15142244cad6b16f8d539bd12893 (diff) | |
#62 - File locking problem in cache
Diffstat (limited to 'MediaBrowser.Common/IO/FileSystemRepository.cs')
| -rw-r--r-- | MediaBrowser.Common/IO/FileSystemRepository.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/MediaBrowser.Common/IO/FileSystemRepository.cs b/MediaBrowser.Common/IO/FileSystemRepository.cs index 24ad04a92..3a4987a94 100644 --- a/MediaBrowser.Common/IO/FileSystemRepository.cs +++ b/MediaBrowser.Common/IO/FileSystemRepository.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Concurrent; using System.IO; -using System.Threading.Tasks; namespace MediaBrowser.Common.IO { @@ -19,11 +18,6 @@ namespace MediaBrowser.Common.IO private readonly ConcurrentDictionary<string, string> _subFolderPaths = new ConcurrentDictionary<string, string>(); /// <summary> - /// The _file locks - /// </summary> - private readonly NamedLock _fileLocks = new NamedLock(); - - /// <summary> /// Gets or sets the path. /// </summary> /// <value>The path.</value> @@ -171,24 +165,6 @@ namespace MediaBrowser.Common.IO } /// <summary> - /// Waits for lock. - /// </summary> - /// <param name="resourcePath">The resource path.</param> - public Task WaitForLockAsync(string resourcePath) - { - return _fileLocks.WaitAsync(resourcePath); - } - - /// <summary> - /// Releases the lock. - /// </summary> - /// <param name="resourcePath">The resource path.</param> - public void ReleaseLock(string resourcePath) - { - _fileLocks.Release(resourcePath); - } - - /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() @@ -204,7 +180,6 @@ namespace MediaBrowser.Common.IO { if (dispose) { - _fileLocks.Dispose(); } } } |
