mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-30 06:51:59 -08:00
19 lines
279 B
Go
19 lines
279 B
Go
package externalcmd
|
|
|
|
import (
|
|
"sync"
|
|
)
|
|
|
|
// Pool is a pool of external commands.
|
|
type Pool struct {
|
|
wg sync.WaitGroup
|
|
}
|
|
|
|
// Initialize initializes a Pool.
|
|
func (p *Pool) Initialize() {
|
|
}
|
|
|
|
// Close waits for all external commands to exit.
|
|
func (p *Pool) Close() {
|
|
p.wg.Wait()
|
|
}
|