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

Developer

Forums

Forums:

my program sometimes uses resourses too long, so i need to give some priority to the system, in general, we have yield() function to do so, but in BREW i didn't found same functionality. Is the threads an only one way to do so?

I think, it would be interesting to a lot of developers to know some generic solution, which doesn't require to write threaded code.

For example, can we make something like ITHREAD_Suspend() to the "main" thread?

Or, somehow to suspend app for N milliseconds, giving some time for system?

You can use IThread for threading purpose, it has a function call IThread_Sleep. IThread was not officially documented in BREW 2.1.3, however it works correctly.

You can use IThread for threading purpose, it has a function call IThread_Sleep. IThread was not officially documented in BREW 2.1.3, however it works correctly.

Check the API reference for ISHELL_Resume().

Check the API reference for ISHELL_Resume().

ruben wrote:You can use IThread for threading purpose, it has a function call IThread_Sleep. IThread was not officially documented in BREW 2.1.3, however it works correctly.
Can Qualcomm answer if IThread is officially supported in 2.1.3?

ruben wrote:You can use IThread for threading purpose, it has a function call IThread_Sleep. IThread was not officially documented in BREW 2.1.3, however it works correctly.
Can Qualcomm answer if IThread is officially supported in 2.1.3?