CNoWorkerThread Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CNoWorkerThread Class.

Use this class as the argument for the MonitorClass template parameter to cache classes if you want to disable dynamic cache maintenance.

System_CAPS_ICON_important.jpg Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

class CNoWorkerThread

Public Methods

NameDescription
CNoWorkerThread::AddHandleNon-functional equivalent of CWorkerThread::AddHandle.
CNoWorkerThread::AddTimerNon-functional equivalent of CWorkerThread::AddTimer.
CNoWorkerThread::GetThreadHandleNon-functional equivalent of CWorkerThread::GetThreadHandle.
CNoWorkerThread::GetThreadIdNon-functional equivalent of CWorkerThread::GetThreadId.
CNoWorkerThread::InitializeNon-functional equivalent of CWorkerThread::Initialize.
CNoWorkerThread::RemoveHandleNon-functional equivalent of CWorkerThread::RemoveHandle.
CNoWorkerThread::ShutdownNon-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();

Return Value

Always returns S_OK.

Remarks

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();

Return Value

Always returns S_OK.

Remarks

The implementation provided by this class does nothing.

Non-functional equivalent of CWorkerThread::GetThreadHandle.

HANDLE GetThreadHandle() throw();

Return Value

Always returns NULL.

Remarks

The implementation provided by this class does nothing.

Non-functional equivalent of CWorkerThread::GetThreadId.

DWORD GetThreadId() throw();

Return Value

Always returns 0.

Remarks

The implementation provided by this class does nothing.

Non-functional equivalent of CWorkerThread::Initialize.

HRESULT Initialize() throw();

Return Value

Always returns S_OK.

Remarks

The implementation provided by this class does nothing.

Non-functional equivalent of CWorkerThread::RemoveHandle.

HRESULT RemoveHandle(HANDLE /* hObject
 */) throw();

Return Value

Always returns S_OK.

Remarks

The implementation provided by this class does nothing.

Non-functional equivalent of CWorkerThread::Shutdown.

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

Return Value

Always returns S_OK.

Remarks

The implementation provided by this class does nothing.

Show: