Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BOOL AFXAPI AfxInternalPumpMessage()
- {
- _AFX_THREAD_STATE *pState = AfxGetThreadState();
- if (!::GetMessage(&(pState->m_msgCur), NULL, NULL, NULL)) <-----
- {
- #ifdef _DEBUG
- TRACE(traceAppMsg, 1, "CWinThread::PumpMessage - Received WM_QUIT.n");
- pState->m_nDisablePumpCount++; // application must die
- #endif
- // Note: prevents calling message loop things in 'ExitInstance'
- // will never be decremented
- return FALSE;
- }
- if (pThreadInfo->m_pActivity)
- {
- SetThreadPriority(pThreadInfo->m_hThread, THREAD_PRIORITY_NORMAL);
- pThreadInfo->m_pActivity->Execute();
- SetThreadPriority(pThreadInfo->m_hThread, THREAD_PRIORITY_BELOW_NORMAL);
- pThreadInfo->m_pActivity = NULL;
- }
- else
- Sleep(50); <-----
Add Comment
Please, Sign In to add comment