getCoreCount.lua 324 B

123456789101112131415
  1. return {
  2. summary = 'Get the number of logical cores.',
  3. description = 'Returns the number of logical cores on the system.',
  4. arguments = {},
  5. returns = {
  6. {
  7. name = 'cores',
  8. type = 'number',
  9. description = 'The number of logical cores on the system.'
  10. }
  11. },
  12. related = {
  13. 'lovr.thread'
  14. }
  15. }