Rockbox Development > Starting Development and Compiling

How to create a background thread in Lua?

(1/1)

whiskers75:
How do I create a thread, like battery bench, that runs in the background until cancelled using the Lua API?

wodz:
I think that is not possible. Lua engine runs as plugin itself.

torne:
Battery bench is a background *plugin*, not just a background thread; the plugin itself has to be able to run in the background. The plugin in this case is Lua, not your Lua program, and the Lua plugin isn't a background plugin yet. You would need to modify the Lua plugin code to make it able to go into the background.

Navigation

[0] Message Index

Go to full version