@@ -3244,13 +3244,13 @@ public virtual void TestThreads()
32443244 using DirectoryReader ir = DirectoryReader . Open ( dir ) ;
32453245 int numThreads = TestUtil . NextInt32 ( Random , 2 , 7 ) ;
32463246 ThreadJob [ ] threads = new ThreadJob [ numThreads ] ;
3247- using CountDownLatch startingGun = new CountDownLatch ( 1 ) ;
3247+ using CountdownLatch startingGun = new CountdownLatch ( 1 ) ;
32483248 for ( int i = 0 ; i < threads . Length ; i ++ )
32493249 {
32503250 threads [ i ] = new ThreadAnonymousClass ( ir , startingGun ) ;
32513251 threads [ i ] . Start ( ) ;
32523252 }
3253- startingGun . CountDown ( ) ;
3253+ startingGun . Signal ( ) ;
32543254 foreach ( ThreadJob t in threads )
32553255 {
32563256 t . Join ( ) ;
@@ -3260,9 +3260,9 @@ public virtual void TestThreads()
32603260 private sealed class ThreadAnonymousClass : ThreadJob
32613261 {
32623262 private readonly DirectoryReader ir ;
3263- private readonly CountDownLatch startingGun ;
3263+ private readonly CountdownLatch startingGun ;
32643264
3265- public ThreadAnonymousClass ( DirectoryReader ir , CountDownLatch startingGun )
3265+ public ThreadAnonymousClass ( DirectoryReader ir , CountdownLatch startingGun )
32663266 {
32673267 this . ir = ir ;
32683268 this . startingGun = startingGun ;
@@ -3272,7 +3272,7 @@ public override void Run()
32723272 {
32733273 try
32743274 {
3275- startingGun . Await ( ) ;
3275+ startingGun . Wait ( ) ;
32763276 BytesRef scratch = new BytesRef ( ) ; // LUCENENET: Moved outside of the loop for performance
32773277 foreach ( AtomicReaderContext context in ir . Leaves )
32783278 {
@@ -3380,13 +3380,13 @@ public virtual void TestThreads2()
33803380 using DirectoryReader ir = DirectoryReader . Open ( dir ) ;
33813381 int numThreads = TestUtil . NextInt32 ( Random , 2 , 7 ) ;
33823382 ThreadJob [ ] threads = new ThreadJob [ numThreads ] ;
3383- using CountDownLatch startingGun = new CountDownLatch ( 1 ) ;
3383+ using CountdownLatch startingGun = new CountdownLatch ( 1 ) ;
33843384 for ( int i = 0 ; i < threads . Length ; i ++ )
33853385 {
33863386 threads [ i ] = new ThreadAnonymousClass2 ( ir , startingGun ) ;
33873387 threads [ i ] . Start ( ) ;
33883388 }
3389- startingGun . CountDown ( ) ;
3389+ startingGun . Signal ( ) ;
33903390 foreach ( ThreadJob t in threads )
33913391 {
33923392 t . Join ( ) ;
@@ -3396,9 +3396,9 @@ public virtual void TestThreads2()
33963396 private sealed class ThreadAnonymousClass2 : ThreadJob
33973397 {
33983398 private readonly DirectoryReader ir ;
3399- private readonly CountDownLatch startingGun ;
3399+ private readonly CountdownLatch startingGun ;
34003400
3401- public ThreadAnonymousClass2 ( DirectoryReader ir , CountDownLatch startingGun )
3401+ public ThreadAnonymousClass2 ( DirectoryReader ir , CountdownLatch startingGun )
34023402 {
34033403 this . ir = ir ;
34043404 this . startingGun = startingGun ;
@@ -3408,7 +3408,7 @@ public override void Run()
34083408 {
34093409 try
34103410 {
3411- startingGun . Await ( ) ;
3411+ startingGun . Wait ( ) ;
34123412 foreach ( AtomicReaderContext context in ir . Leaves )
34133413 {
34143414 AtomicReader r = context . AtomicReader ;
0 commit comments