without inspecting the data at any point in between, the read-region flush on acquire_stop initializes the monitor. Calling this multiple times fills the monitor without ever flushing it, causing the runtime to hang. This fixes that problem.
Tested in acquire-video-runtime/tests/repeat-start-no-monitor.cpp, which will hang without the change made in acquire.c.
In acquisitions where we call
without inspecting the data at any point in between, the read-region flush on
acquire_stop
initializes the monitor. Calling this multiple times fills the monitor without ever flushing it, causing the runtime to hang. This fixes that problem.Tested in
acquire-video-runtime/tests/repeat-start-no-monitor.cpp
, which will hang without the change made inacquire.c
.