C# Class Lucene.Net.Index.TestDocumentsWriterStallControl

Inheritance: LuceneTestCase
Mostrar archivo Open project: paulirwin/lucene.net Class Usage Examples

Public Methods

Method Description
AwaitState ( ThreadState state ) : void

Waits for all incoming threads to be in wait() methods.

Join ( Lucene.Net.Support.ThreadClass toJoin ) : void
Start ( Lucene.Net.Support.ThreadClass tostart ) : void
Terminated ( Lucene.Net.Support.ThreadClass threads ) : bool
WaitThreads ( int num, DocumentsWriterStallControl ctrl ) : Lucene.Net.Support.ThreadClass[]

Private Methods

Method Description
AssertState ( int numReleasers, int numStallers, int numWaiters, Lucene.Net.Support.ThreadClass threads, DocumentsWriterStallControl ctrl ) : void
TestAccquireReleaseRace ( ) : void
TestRandom ( ) : void
TestSimpleStall ( ) : void

Method Details

AwaitState() public static method

Waits for all incoming threads to be in wait() methods.
public static AwaitState ( ThreadState state ) : void
state ThreadState
return void

Join() public static method

public static Join ( Lucene.Net.Support.ThreadClass toJoin ) : void
toJoin Lucene.Net.Support.ThreadClass
return void

Start() public static method

public static Start ( Lucene.Net.Support.ThreadClass tostart ) : void
tostart Lucene.Net.Support.ThreadClass
return void

Terminated() public static method

public static Terminated ( Lucene.Net.Support.ThreadClass threads ) : bool
threads Lucene.Net.Support.ThreadClass
return bool

WaitThreads() public static method

public static WaitThreads ( int num, DocumentsWriterStallControl ctrl ) : Lucene.Net.Support.ThreadClass[]
num int
ctrl DocumentsWriterStallControl
return Lucene.Net.Support.ThreadClass[]