Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

9.2 Levels of Multithread Support

Different DBTools.h++ classes provide different levels of multithread support. Application programs must ensure that DBTools.h++ classes are used appropriately, based on the safety level they provide. The multithread support levels available in DBTools.h++ are:

The DBTools.h++ classes that fall into each level are summarized below. Table 11 lists all MT-safe level 1 and level 2 classes. If a class does not appear there, you should assume that its multithreading support level is MT-safe level 0.

Table 11 -- MT-safe classes in DBTools.h++ 

 
MT-safe levelDBTools.h++ classes
level 2
RWDBDatabase
level 1
RWDBAssignment
RWDBBlob
RWDBBoundExpr
RWDBCollectableExpr
RWDBColumn
RWDBConnection
RWDBCriterion
RWDBCritFormDefinition
RWDBCritFuncDef{n}
RWDBDateTime
RWDecimalPortable
RWDBDuration
RWDBExpr
RWDBExprFormDefinition
RWDBExprFuncDef{n}
RWDBForeignKey
RWDBForeignKeyList
RWDBJoinExpr
RWDBNullIndicator
RWDBPhraseBook
RWDBRow
RWDBSchema
RWDBStatus
RWDBTracer
RWDBValue
level 0
All classes not listed above.

You will find the acquire() and release() functions normally associated with multithreading in the APIs of many MT-safe level 0 classes. Do not use these functions at this time because they slow down performance. We have included the acquire() and release() functions only for the purpose of making classes multithread-ready. These functions will be available if and when the class is promoted to MT-safe level 1. Release notes will provide information on classes that are promoted to a higher multithread-safety level.


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.