|Microsoft DirectX 9.0|
The Close method waits for the thread to exit, then releases its resources.
No return value.
Before calling this method, you must provide a way for the thread to exit. For example, in your CAMThread::ThreadProc method, define a request that signals the thread to exit. Then call the CAMThread::CallWorker method with that value.
The ~CAMThread destructor method calls this method.