Skip to content

Latest commit

 

History

History
93 lines (67 loc) · 3.77 KB

ne-comsvcs-csc_threadpool.md

File metadata and controls

93 lines (67 loc) · 3.77 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NE:comsvcs.tagCSC_ThreadPool
CSC_ThreadPool (comsvcs.h)
Indicates the thread pool in which the work runs that is submitted through the activity returned from CoCreateActivity.
CSC_MTAThreadPool
CSC_STAThreadPool
CSC_ThreadPool
CSC_ThreadPool enumeration [COM+]
CSC_ThreadPoolInherit
CSC_ThreadPoolNone
_cos_CSC_ThreadPool
comsvcs/CSC_MTAThreadPool
comsvcs/CSC_STAThreadPool
comsvcs/CSC_ThreadPool
comsvcs/CSC_ThreadPoolInherit
comsvcs/CSC_ThreadPoolNone
cos.csc_threadpool
cos\csc_threadpool.htm
cos
5acf5c6b-b015-448b-ad4c-e4361a97c31e
12/05/2018
CSC_MTAThreadPool, CSC_STAThreadPool, CSC_ThreadPool, CSC_ThreadPool enumeration [COM+], CSC_ThreadPoolInherit, CSC_ThreadPoolNone, _cos_CSC_ThreadPool, comsvcs/CSC_MTAThreadPool, comsvcs/CSC_STAThreadPool, comsvcs/CSC_ThreadPool, comsvcs/CSC_ThreadPoolInherit, comsvcs/CSC_ThreadPoolNone, cos.csc_threadpool
comsvcs.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
CSC_ThreadPool
19H1
tagCSC_ThreadPool
comsvcs/tagCSC_ThreadPool
CSC_ThreadPool
comsvcs/CSC_ThreadPool
c++
APIRef
kbSyntax
HeaderDef
ComSvcs.h
CSC_ThreadPool

CSC_ThreadPool enumeration

-description

Indicates the thread pool in which the work runs that is submitted through the activity returned from CoCreateActivity.

-enum-fields

-field CSC_ThreadPoolNone:0

No thread pool is used. If this value is used to configure a CServiceConfig object that is passed to CoCreateActivity, an error (CO_E_THREADPOOL_CONFIG) is returned. This is the default thread pool setting for CServiceConfig when CSC_InheritanceConfig is set to CSC_Ignore.

-field CSC_ThreadPoolInherit

The same type of thread pool apartment as the caller's thread apartment is used. If the caller's thread apartment is the neutral apartment, a single-threaded apartment is used. This is the default thread pool setting for CServiceConfig when CSC_InheritanceConfig is set to CSC_Inherit.

-field CSC_STAThreadPool

A single-threaded apartment (STA) is used.

-field CSC_MTAThreadPool

A multithreaded apartment (MTA) is used.

-remarks

This enumeration is used to set the thread pool for CServiceConfig only when calling CoCreateActivity. An error is returned if you try to set the thread pool when calling CoEnterServiceDomain.

-see-also

COM+ Threading Models

CServiceConfig

CoCreateActivity

IServiceThreadPoolConfig::SelectThreadPool