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


CWorkerThread::Shutdown

Call this method to shut down the worker thread.

HRESULT Shutdown(
   DWORD dwWait = ATL_WORKER_THREAD_WAIT 
) throw( );

Параметры

  • dwWait
    The time in milliseconds to wait for the worker thread to shut down.

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

Returns S_OK on success, or an error HRESULT on failure, such as if the timeout value, dwWait, is exceeded.

Заметки

To reuse the object, call CWorkerThread::Initialize after calling this method.

Note that calling Shutdown on an object initialized with a pointer to another CWorkerThread object has no effect and always returns S_OK.

Требования

Header: atlutil.h

См. также

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

CWorkerThread Class

CWorkerThread Members

ATL_WORKER_THREAD_WAIT