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

Developer

Forums

Forums:

Hi,

I'm starting to work with timers and I have questions about them:

 

  • If I have different threads, the timer callback function is called into the task in which it has been established or is always jumped on a particular task?
  • Is it possible to prioritize the timers?. With this I mean that if two timers expire at the same time, Is it possible to attend one in particular before the other?

 

Regards,

1.) Note that BrewMp supports cooperatively-scheduled thread that is based on BREW's callback-based APIs. this interface provides methods to start and stop threads and to implement blocking APIs.
Thread created using this interface can not be re-useable, Once stopped you can not restart it agian usng ITHREAD_Start().
Please refer below tutorial on "Cooperative Multithreading in BREW with IThread"
http://www.devx.com/wireless/Article/32077
2.) Set time intervals when to invoke them, The timer will expire at Current Time + time specified in ishell_timer, on expiration your registerd callback will invoke and you can attend(do your task)there. Also Note that timers do not repeat. The user must reset the timer if they desire a repeating timer like repainting screen in games etc...

1.) Note that BrewMp supports cooperatively-scheduled thread that is based on BREW's callback-based APIs. this interface provides methods to start and stop threads and to implement blocking APIs.
Thread created using this interface can not be re-useable, Once stopped you can not restart it agian usng ITHREAD_Start().
Please refer below tutorial on "Cooperative Multithreading in BREW with IThread"
http://www.devx.com/wireless/Article/32077
2.) Set time intervals when to invoke them, The timer will expire at Current Time + time specified in ishell_timer, on expiration your registerd callback will invoke and you can attend(do your task)there. Also Note that timers do not repeat. The user must reset the timer if they desire a repeating timer like repainting screen in games etc...