opencv/modules/gapi/src/executor
Dmitry Matveev d19fc1264b
Merge pull request #24178 from dmatveev:dm/streaming_queue
G-API: Introduce a Queue Source #24178

- Added a new IStreamSource class: in fact, a wrapper over a concurrent queue;
- Added minimal example on how it can be used;
- Extended IStreamSource with optional "halt" interface to break the blocking calls in the emitter threads when required to stop.
- Introduced a QueueInput class which allows to pass the whole graph's input vector at once. In fact it is a thin wrapper atop of individual Queue Sources.

There is a hidden trap found with our type system as described in https://github.com/orgs/g-api-org/discussions/2

While it works even in this form, it should be addressed somewhere in the 5.0 timeframe.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2023-09-04 12:48:53 +03:00
..
conc_queue.hpp G-API: Introduce streaming::desync and infer(ROI) 2020-10-29 20:19:15 +03:00
gabstractexecutor.cpp G-API: Introduce GAbstractExecutor 2022-08-30 22:48:29 +03:00
gabstractexecutor.hpp G-API: Introduce GAbstractExecutor 2022-08-30 22:48:29 +03:00
gabstractstreamingexecutor.cpp G-API: Introduce GAbstractStreamingExecutor 2022-08-30 23:50:34 +03:00
gabstractstreamingexecutor.hpp G-API: Introduce GAbstractStreamingExecutor 2022-08-30 23:50:34 +03:00
gasync.cpp gapi(async): use lazy-initialization of async_service singleton 2021-01-15 04:47:54 +00:00
gexecutor.cpp Merge pull request #22935 from alalek:gapi_error 2022-12-19 06:05:15 +00:00
gexecutor.hpp G-API: Introduce GAbstractExecutor 2022-08-30 22:48:29 +03:00
gstreamingexecutor.cpp Merge pull request #24178 from dmatveev:dm/streaming_queue 2023-09-04 12:48:53 +03:00
gstreamingexecutor.hpp G-API: Introduce GAbstractStreamingExecutor 2022-08-30 23:50:34 +03:00
gtbbexecutor.cpp Merge pull request #21775 from luzpaz:typos/gapi 2022-04-13 17:06:37 +00:00
gtbbexecutor.hpp build: eliminate build warnings on Ubuntu 20.04/16.04 2022-12-20 06:46:30 +00:00
last_value.hpp G-API: Introduce streaming::desync and infer(ROI) 2020-10-29 20:19:15 +03:00