Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 401 Bytes

README.md

File metadata and controls

6 lines (6 loc) · 401 Bytes

mix-lua-c-example

  • driver (driver.c + sleep.c): calls main.lua (main.lc)
  • main.lua: calls clock.lua (could call other files in future)
  • clock.lua: prints contents of /etc/passwd in 1 second intervals; makes use of compiled wait_mark() and wait_execute()
  • sleep.c: implements wait_mark() and wait_execute(). The latter sleeps for number of milliseconds given with the former.