Muokkaa

Jaa


CNoWorkerThread Class

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.

Syntax

class CNoWorkerThread

Members

Public Methods

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.

Remarks

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.

Requirements

Header: atlutil.h

CNoWorkerThread::AddHandle

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.

CNoWorkerThread::AddTimer

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.

CNoWorkerThread::GetThreadHandle

Non-functional equivalent of CWorkerThread::GetThreadHandle.

HANDLE GetThreadHandle() throw();

Return Value

Always returns NULL.

Remarks

The implementation provided by this class does nothing.

CNoWorkerThread::GetThreadId

Non-functional equivalent of CWorkerThread::GetThreadId.

DWORD GetThreadId() throw();

Return Value

Always returns 0.

Remarks

The implementation provided by this class does nothing.

CNoWorkerThread::Initialize

Non-functional equivalent of CWorkerThread::Initialize.

HRESULT Initialize() throw();

Return Value

Always returns S_OK.

Remarks

The implementation provided by this class does nothing.

CNoWorkerThread::RemoveHandle

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.

CNoWorkerThread::Shutdown

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.