perf: automatically suspend the scheduler when all threads are waiting

This commit is contained in:
Folke Lemaitre 2024-06-29 22:44:51 +02:00
commit 021de31682
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 78 additions and 47 deletions

View file

@ -21,6 +21,7 @@ M.log = {
---@async
---@param opts {args?: string[], updated?:boolean, check?:boolean}
run = function(self, opts)
-- self:spawn({ "sleep", "5" })
local args = {
"log",
"--pretty=format:%h %s (%cr)",