Files
podman/libpod/runtime_worker.go
Paul Holzinger bad25da92e libpod: add !remote tag
This should never be pulled into the remote client.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-24 12:11:34 +02:00

22 lines
325 B
Go

//go:build !remote
// +build !remote
package libpod
func (r *Runtime) startWorker() {
r.workerChannel = make(chan func(), 10)
go func() {
for w := range r.workerChannel {
w()
r.workerGroup.Done()
}
}()
}
func (r *Runtime) queueWork(f func()) {
r.workerGroup.Add(1)
go func() {
r.workerChannel <- f
}()
}