Поделиться через


IThreadPoolConfig::SetTimeout

Call this method to set the maximum time in milliseconds that the thread pool will wait for a thread to shut down.

STDMETHOD(SetTimeout)(
   DWORD dwMaxWait 
);

Параметры

  • dwMaxWait
    The requested maximum time in milliseconds that the thread pool will wait for a thread to shut down.

Возвращаемое значение

Returns S_OK on success, or an error HRESULT on failure.

Пример

See IThreadPoolConfig::GetSize.

Требования

Header: atlutil.h

См. также

Основные понятия

IThreadPoolConfig Interface

IThreadPoolConfig Members

IThreadPoolConfig::GetTimeout