Re: Thread and Timer




BOOL CMyThread::InitInstance()
{
   m_TimerID = SetTimer(NULL,0,5000,NULL);
   return TRUE;


In this way works. But If I add a method

void CMyThread::Monitor(...)
{
m_TimerID = SetTimer(NULL,0,5000,NULL);
}

and I call from my dialog, the timer was set but OnTimer was never
called.
(Sorry I'm new to thread maybe Im doing something wrong)
.



Relevant Pages

  • OnTimer
    ... I am setting a timer in a CFormView derived class. ... void CMyFormView::DoSomething ... void CMyFormView::OnTimer(UINT nIDEvent) ... My trouble is that the OnTimer never gets called. ...
    (microsoft.public.vc.mfc)
  • Re: Thread and Timer
    ... If you want to set a timer in the thread from a dialog in your main thread, ... void CMyDialog::SetTimerInThread ... //in message map of thread ... and I call from my dialog, the timer was set but OnTimer was never ...
    (microsoft.public.vc.mfc)
  • [PATCH] i386 No Idle HZ aka dynticks 051228
    ... I attempted to move all timer ticks to APIC interrupts and found them ... There are now only 3 ways to skip ticks - PIT only, ... +static inline int clear_nohz_cpu ... +static inline void dyn_early_reprogram ...
    (Linux-Kernel)
  • [PATCH] No idle HZ aka dynticks i386 for 2.6.16-rc4
    ... The smp idle handler was modified to wake up the APIC timer of the last cpu ... extern void run_local_timers; ... +extern int dyntick_enabled; ... +static inline int clear_nohz_cpu ...
    (Linux-Kernel)
  • [RFC][PATCH 5/6] new timeofday i386 arch specific changes, part 4 (v. B4)
    ... static int set_rtc_mmss ... * Time Stamp Counter value at the time of the timer interrupt, ... -static inline void do_timer_interrupt(int irq, void *dev_id, ... deleted file mode 100644 ...
    (Linux-Kernel)

Loading