IThreadPoolConfig::SetTimeout
Chiamare questo metodo per impostare il tempo massimo in millisecondi che il pool di thread rimarrà un thread per interrompere.
STDMETHOD(SetTimeout)(
DWORD dwMaxWait
);
Parametri
- dwMaxWait
Il tempo massimo richiesto in millisecondi che il pool di thread aspetti un thread per interrompere.
Valore restituito
Restituisce S_OK su positivo, o un errore HRESULT di errore.
Esempio
Vedere IThreadPoolConfig::GetSize.
Requisiti
Header: atlutil.h