|
8 | 8 | using Lucene.Net.Search; |
9 | 9 | using Lucene.Net.Store; |
10 | 10 | using Lucene.Net.Support; |
| 11 | +using Lucene.Net.Support.Threading; |
11 | 12 | using Lucene.Net.Util; |
12 | 13 | using RandomizedTesting.Generators; |
13 | 14 | using System; |
|
18 | 19 | using Assert = Lucene.Net.TestFramework.Assert; |
19 | 20 | using JCG = J2N.Collections.Generic; |
20 | 21 | using Test = NUnit.Framework.TestAttribute; |
21 | | -using Lucene.Net.Support.Threading; |
22 | 22 |
|
23 | 23 | namespace Lucene.Net.Index |
24 | 24 | { |
@@ -3244,7 +3244,7 @@ public virtual void TestThreads() |
3244 | 3244 | using DirectoryReader ir = DirectoryReader.Open(dir); |
3245 | 3245 | int numThreads = TestUtil.NextInt32(Random, 2, 7); |
3246 | 3246 | ThreadJob[] threads = new ThreadJob[numThreads]; |
3247 | | - CountDownLatch startingGun = new CountDownLatch(1); |
| 3247 | + using CountDownLatch startingGun = new CountDownLatch(1); |
3248 | 3248 | for (int i = 0; i < threads.Length; i++) |
3249 | 3249 | { |
3250 | 3250 | threads[i] = new ThreadAnonymousClass(ir, startingGun); |
@@ -3380,7 +3380,7 @@ public virtual void TestThreads2() |
3380 | 3380 | using DirectoryReader ir = DirectoryReader.Open(dir); |
3381 | 3381 | int numThreads = TestUtil.NextInt32(Random, 2, 7); |
3382 | 3382 | ThreadJob[] threads = new ThreadJob[numThreads]; |
3383 | | - CountDownLatch startingGun = new CountDownLatch(1); |
| 3383 | + using CountDownLatch startingGun = new CountDownLatch(1); |
3384 | 3384 | for (int i = 0; i < threads.Length; i++) |
3385 | 3385 | { |
3386 | 3386 | threads[i] = new ThreadAnonymousClass2(ir, startingGun); |
|
0 commit comments