See Also
dtSearch Text Retrieval Engine -- .NET API (.NET 2.0-4.0) 7.70
IndexJob::IsThreadDone Method

Checks whether an IndexJob started using ExecuteInThread is done, and also gets information on the state of the index update.

C#
public bool IsThreadDone(int waitTimeMillis, ref IndexProgressInfo status);
Visual Basic
Public Function IsThreadDone(waitTimeMillis As Integer, ByRef status As IndexProgressInfo) As bool
Parameters
Parameters 
Description 
waitTimeMillis 
Number of milliseconds to wait of if the thread is not done. 
status 
Structure to update with the current state of the index update (can be null). 
Returns

True if the thread is done, or false if the thread is still running.

Remarks

An application that loops calling IsThreadDone() should call Sleep() between calls to allow the indexing thread to run. Otherwise a high percentage if CPU resources will be spent just processing IsThreadDone calls.  

If waitTimeMillis is greater than zero, IsThreadDone will automatically wait up to waitTimeMillis milliseconds for the thread to complete before returning false.  

 

See Also
You are here: dtSearch::Engine Namespace > IndexJob Class > IndexJob Methods > IsThreadDone Method
Copyright (c) 1998-2012 dtSearch Corp. All rights reserved.