Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

How can i use timer in BREW environment?

Please give me example, thanks!!

In CMyApp
OnEvent(....)
{
EVT_APP_START:
//start timer
ISHELL_SetTimer(pApp->m_pIShell, 10, (PFNNOTIFY) OnTimer, (void*)pApp);
....

static void OnTimer(CMyApp *pApp)
{
//call me again after 5000 second
ISHELL_SetTimer(pApp->m_pIShell, 5000, (PFNNOTIFY) OnTimer, (void*)pApp);
}
---------------------NEW DAY
msn sniffer
msn sniffer
msn monitor
msn monitor
DVD Ripper,DVD Audio Ripper,RM to MP3,RM CD Burner
Copy DVD to AVI, DVD to MPEG, DVD to VCD or DVD to SVCD
Rip DVD Music to mp3,,DVD Audio Ripper,DVD to Mp3, DVD to Wav
RM to MP3,Real Music to MP3,RM Convert MP3,RM to Wav
RM MP3 CD maker,Real Music CD Burner,RM CD Burner,RM Music CD Maker,MP3 CD Maker
msn sniffer monitor
msn sniffer
msn monitor
msn monitor
google sniffer monitor
google sniffer
google monitor
google monitor

In CMyApp
OnEvent(....)
{
EVT_APP_START:
//start timer
ISHELL_SetTimer(pApp->m_pIShell, 10, (PFNNOTIFY) OnTimer, (void*)pApp);
....

static void OnTimer(CMyApp *pApp)
{
//call me again after 5000 second
ISHELL_SetTimer(pApp->m_pIShell, 5000, (PFNNOTIFY) OnTimer, (void*)pApp);
}
---------------------NEW DAY
msn sniffer
msn sniffer
msn monitor
msn monitor
DVD Ripper,DVD Audio Ripper,RM to MP3,RM CD Burner
Copy DVD to AVI, DVD to MPEG, DVD to VCD or DVD to SVCD
Rip DVD Music to mp3,,DVD Audio Ripper,DVD to Mp3, DVD to Wav
RM to MP3,Real Music to MP3,RM Convert MP3,RM to Wav
RM MP3 CD maker,Real Music CD Burner,RM CD Burner,RM Music CD Maker,MP3 CD Maker
msn sniffer monitor
msn sniffer
msn monitor
msn monitor
google sniffer monitor
google sniffer
google monitor
google monitor

One thing to keep in mind however is that even though the thing is called a timer, it is not really a timer in the sense of a hardware interrupt. The entire Brew OS is event driven and so are the timers, so they can have substantial latency as they are queued like any other event.

One thing to keep in mind however is that even though the thing is called a timer, it is not really a timer in the sense of a hardware interrupt. The entire Brew OS is event driven and so are the timers, so they can have substantial latency as they are queued like any other event.