|Microsoft DirectX 9.0|
Queues a request for execution by the worker thread.
void PutThreadMsg( UINT uMsg, DWORD dwMsgFlags, LPVOID lpMsgParam, CAMEvent *pEvent = NULL );
Optional flags parameter.
Optional pointer to a data block containing additional parameters or return values. Must be statically or heap-allocated and not automatic.
Optional pointer to an event object to be signaled upon completion.
No return value.
This member function queues a request for execution by the worker thread. The parameters of this member function will be queued (in a CMsg object) and passed to the CMsgThread::ThreadMessageProc member function of the worker thread. This member function returns immediately after queuing the request and does not wait for the thread to fulfill the request. The CMsgThread::ThreadMessageProc member function of the derived class defines the four parameters.
This member function uses a multithread safe list, so multiple calls to this member function from different threads can be made safely.