aboutsummaryrefslogtreecommitdiffstats
path: root/src/wait-group.lisp
AgeCommit message (Collapse)Author
2021-02-14Add a usage exampleTeddy Wing
2021-02-14Add documentationTeddy Wing
2021-02-14Decided I don't need a `wg:clear` functionTeddy Wing
It works find with just `done`.
2021-02-06wait: Exit when `<= 0` instead of `= 0`Teddy Wing
Just in case the counter becomes negative before the loop condition runs.
2021-02-06Add `print-object` on `wait-group`Teddy Wing
Print the object including the `counter` slot.
2021-02-06Add documentation tasksTeddy Wing
2021-01-31Define a library for Go-style wait groupsTeddy Wing
Define a data structure and methods to represent a Go-style wait group, similar to `sync.WaitGroup` (except single-threaded). Implements a similar interface. Calling `wait` blocks until the wait group's internal counter gets to 0.