description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CNoWorkerThread Class |
CNoWorkerThread Class |
11/04/2016 |
|
|
29f06bae-b658-4aac-9c14-331e996d25d1 |
Use this class as the argument for the MonitorClass
template parameter to cache classes if you want to disable dynamic cache maintenance.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
class CNoWorkerThread
Name | Description |
---|---|
CNoWorkerThread::AddHandle | Non-functional equivalent of CWorkerThread::AddHandle. |
CNoWorkerThread::AddTimer | Non-functional equivalent of CWorkerThread::AddTimer. |
CNoWorkerThread::GetThreadHandle | Non-functional equivalent of CWorkerThread::GetThreadHandle. |
CNoWorkerThread::GetThreadId | Non-functional equivalent of CWorkerThread::GetThreadId. |
CNoWorkerThread::Initialize | Non-functional equivalent of CWorkerThread::Initialize. |
CNoWorkerThread::RemoveHandle | Non-functional equivalent of CWorkerThread::RemoveHandle. |
CNoWorkerThread::Shutdown | Non-functional equivalent of CWorkerThread::Shutdown. |
This class provides the same public interface as CWorkerThread. This interface is expected to be provided by the MonitorClass
template parameter to cache classes.
The methods in this class are implemented to do nothing. The methods that return an HRESULT always return S_OK, and the methods that return a HANDLE or thread ID always return 0.
Header: atlutil.h
Non-functional equivalent of CWorkerThread::AddHandle.
HRESULT AddHandle(HANDLE /* hObject */,
IWorkerThreadClient* /* pClient */,
DWORD_PTR /* dwParam */) throw();
Always returns S_OK.
The implementation provided by this class does nothing.
Non-functional equivalent of CWorkerThread::AddTimer.
HRESULT AddTimer(DWORD /* dwInterval */,
IWorkerThreadClient* /* pClient */,
DWORD_PTR /* dwParam */,
HANDLE* /* phTimer */) throw();
Always returns S_OK.
The implementation provided by this class does nothing.
Non-functional equivalent of CWorkerThread::GetThreadHandle.
HANDLE GetThreadHandle() throw();
Always returns NULL.
The implementation provided by this class does nothing.
Non-functional equivalent of CWorkerThread::GetThreadId.
DWORD GetThreadId() throw();
Always returns 0.
The implementation provided by this class does nothing.
Non-functional equivalent of CWorkerThread::Initialize.
HRESULT Initialize() throw();
Always returns S_OK.
The implementation provided by this class does nothing.
Non-functional equivalent of CWorkerThread::RemoveHandle.
HRESULT RemoveHandle(HANDLE /* hObject */) throw();
Always returns S_OK.
The implementation provided by this class does nothing.
Non-functional equivalent of CWorkerThread::Shutdown.
HRESULT Shutdown(DWORD dwWait = ATL_WORKER_THREAD_WAIT) throw();
Always returns S_OK.
The implementation provided by this class does nothing.