Assembly: libdb_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.32.0
Syntax
C# |
---|
public uint ThreadCount { get; set; } |
Visual Basic (Declaration) |
---|
Public Property ThreadCount As UInteger |
Visual C++ |
---|
public: property unsigned int ThreadCount { unsigned int get (); void set (unsigned int value); } |
Remarks
ThreadCount must set if FailCheck()()() is used. ThreadCount does not set the maximum number of threads. It is used to determine memory sizing and the thread control block reclamation policy.
If a process has not configured ThreadIsAlive, and then attempts to join a database environment configured for failure checking with FailCheck()()(), SetThreadID, ThreadIsAlive and ThreadCount, the program may be unable to allocate a thread control block and fail to join the environment. This is true of the standalone Berkeley DB utility programs. To avoid problems when using the standalone Berkeley DB utility programs with environments configured for failure checking, incorporate the utility's functionality directly in the application, or call FailCheck()()() before running the utility.