Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2016-10-01 17:13:29 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2016-10-02 19:53:50 +0300
commit6d5471a958c9cdde8fefb229597d3a73cdb50ea8 (patch)
tree95e3f6fc079629f648ef772ec93780fecc9c9194 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs
parentd8f6a4e82d863ed0a4340a3d68cbf3b5a9e961ac (diff)
[Misc] Add cancellation tokens to SemaphoreSlim.WaitAsync where applicable.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs
index f0cd5c416a..eae4e86ec8 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/FileSearchCategory.cs
@@ -109,7 +109,7 @@ namespace MonoDevelop.Components.MainToolbar
//we don't want to use all CPU doing same thing, instead 1st one will create cache, others will wait here
//and then all will use cached version...
try {
- await allFilesLock.WaitAsync ();
+ await allFilesLock.WaitAsync (token);
files = allFilesCache = allFilesCache ?? GenerateAllFiles ();
if (token.IsCancellationRequested)
return;