Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Selects a thread by specifying the next thread in the sequence.
int GetThread(
CComApartment* /* pApt */,
int nThreads
);
Parameters
pApt
Not used in ATL's default implementation.nThreads
The maximum number of threads in the EXE module.
Return Value
An integer between zero and (nThreads – 1). Identifies one of the threads in the EXE module.
Remarks
You can override GetThread to provide a different method of selection or to make use of the pApt parameter.
GetThread is called by CComAutoThreadModule::CreateInstance.
Requirements
Header: atlbase.h
See Also
Concepts
CComSimpleThreadAllocator Class