Provider Threading Models

OLE DB Programmer's Reference

Providers can support single, apartment, or free-threaded OLE DB objects as long as they advertise which models are supported. It is recommended that providers build free-threaded implementations, which provide the best combination of speed and safety.

The threading model of a provider is described by a combination of the threading model registered for its Class ID in the registry, the DBPROP_DSOTHREADMODEL property, and the DBPROP_ROWTHREADMODEL property. The threading model for all nonrowset objects supported by the provider is described by the property DBPROP_DSOTHREADMODEL, and the threading model for rowsets is described by the property DBPROP_ROWTHREADMODEL. The threading model returned in DBPROP_DSOTHREADMODEL and DBPROP_ROWTHREADMODEL might be stricter than the thread model registered under the provider's CLSID in the case where additional threading limitations are imposed by underlying components, or where different services are invoked to support different objects. For more information, see "Rowset Properties" in Appendix C: OLE DB Properties.

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net