Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  How to create a background thread in Lua?
« previous next »
  • Print
Pages: [1]

Author Topic: How to create a background thread in Lua?  (Read 1851 times)

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
How to create a background thread in Lua?
« on: January 04, 2013, 07:11:08 AM »
How do I create a thread, like battery bench, that runs in the background until cancelled using the Lua API?
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: How to create a background thread in Lua?
« Reply #1 on: January 04, 2013, 07:45:51 AM »
I think that is not possible. Lua engine runs as plugin itself.
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: How to create a background thread in Lua?
« Reply #2 on: January 04, 2013, 11:02:34 AM »
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.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  How to create a background thread in Lua?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.074 seconds with 15 queries.