Microsoft DirectX 8.1 (C++)

CAMThread::ThreadProc

The ThreadProc method is the thread procedure.

Syntax

virtual DWORD ThreadProc(void) = 0;

Return Value

Returns a DWORD value whose meaning is defined by the derived class.

Remarks

This is a pure virtual method. Implement this method in your derived class to supply a thread procedure. When the CAMThread::Create method creates a thread, it gives the address of the CAMThread::InitialThreadProc method, which in turn calls your ThreadProc method.

Typically, your ThreadProc method will enter a loop that retrieves requests (by calling the CAMThread::GetRequest or CAMThread::CheckRequest methods) and processes data.

When this method returns, the thread exits.

See Also