Share via


CAMThread::Close

 
Microsoft DirectShow 9.0

CAMThread::Close

The Close method waits for the thread to exit, then releases its resources.

Syntax

  void Close(void);

Return Value

No return value.

Remarks

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.

Requirements

**  Header:** Declared in Wxutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also