getCoreCount.lua 415 B

123456789101112131415161718192021
  1. return {
  2. tag = 'system-info',
  3. summary = 'Get the number of logical cores.',
  4. description = 'Returns the number of logical cores on the system.',
  5. arguments = {},
  6. returns = {
  7. cores = {
  8. type = 'number',
  9. description = 'The number of logical cores on the system.'
  10. }
  11. },
  12. variants = {
  13. {
  14. arguments = {},
  15. returns = { 'cores' }
  16. }
  17. },
  18. related = {
  19. 'lovr.thread'
  20. }
  21. }