FrameQueueSink::isCancelRequested Method |
||
Returns true when Grabber::stopLive was called. The sink is required to halt operation and return from any callbacks as soon as possible. | ||
Syntax: | bool isCancelRequested() const; |
|
Return Value: | true when the sink is supposed to cancel its operation, otherwise false. |
|
: | It is necessary to check this flag when processing images in a loop in FrameQueueSinkListener::framesQueued. You should return as soon as possible from FrameQueueSinkListener::framesQueued when this flag is set to prevent deadlocks. |
|
See also: | FrameQueueSink, FrameQueueSinkListener::framesQueued |