support cgroup for limit resource

This commit is contained in:
wanglei.w
2020-12-03 22:56:04 +08:00
parent 0782179c94
commit ceeee69afe
4 changed files with 191 additions and 0 deletions

View File

@@ -81,6 +81,8 @@ func openCvProcess(xmlFile string, reader io.ReadCloser, w, h int) {
// show the image in the window, and wait 1 millisecond
window.IMShow(img2)
img.Close()
img2.Close()
if window.WaitKey(10) >= 0 {
break
}