// Simple execution thread. Assuming that an ActiveTest instance // only creates one of these at a time. UINT ActiveTest::threadFunction(LPVOID thisInstance) { ActiveTest* test = (ActiveTest*) thisInstance; test->run(); test->_runCompleted.SetEvent(); return 0; }
// Simple execution thread. Assuming that an ActiveTest instance // only creates one of these at a time. UINT ActiveTest::threadFunction( LPVOID thisInstance ) { ActiveTest *test = (ActiveTest *)thisInstance; test->run (); ::CloseHandle( test->m_threadHandle ); test->m_threadHandle = INVALID_HANDLE_VALUE; test->m_runCompleted.SetEvent(); return 0; }