CBlockedThread Class Reference#include <BlockedThread.h>
Collaboration diagram for CBlockedThread:
![]()
Detailed DescriptionDefinition at line 48 of file BlockedThread.h. Constructor & Destructor Documentation
Definition at line 51 of file BlockedThread.cpp. 00051 : m_pEvent(NULL) 00052 { 00053 //Create the thread pool 00054 m_pPool=new CThreadPool(1, 00055 1, 00056 NULL, 00057 CGenericThread::tpNormal, 00058 aInit); 00059 00060 //Create the event 00061 m_pEvent=COSManager::CreateEvent(); 00062 00063 }
Member Function Documentation
Definition at line 72 of file BlockedThread.cpp. 00074 { 00075 //Build our data 00076 ThreadData aData; 00077 aData.lpData=lpData; 00078 aData.pClass=this; 00079 aData.pEvent=m_pEvent; 00080 aData.pProc=pProc; 00081 aData.dwReturnValue=0; 00082 00083 //Call the thread 00084 m_pPool->SubmitJob(ThreadProc, 00085 (LPVOID)&aData); 00086 00087 //Now wait 00088 m_pEvent->Wait(); 00089 00090 //Done 00091 return aData.dwReturnValue; 00092 }
The documentation for this class was generated from the following files: |