opencv/modules/gapi/test
Anton Potapov eb6d8e6af2 TBB executor for GAPI: fix race consition in Async test
The test has race condition, which is addressed by the patch.

The race is next:

    Master thread is calling execute (effectively blocked, waiting for
callback to be called)
    "Async" thread picks up the callback
    Call the callback
    Then sets the variables in test
    After call back is called, master thread is unblocked and may check
the variables (set in point 4 by the "async" thread) earlier then they
actually changed

Changes:

    callback should be called as the last step (after flag variables are
    set), as it effectively unblock the master thread

fixes #18974
2020-12-01 11:12:36 +03:00
..
common Merge pull request #18674 from anna-khakimova:ak/backgroundSubtractor 2020-11-30 18:09:42 +00:00
cpu Merge pull request #18674 from anna-khakimova:ak/backgroundSubtractor 2020-11-30 18:09:42 +00:00
executor TBB executor for GAPI: fix race consition in Async test 2020-12-01 11:12:36 +03:00
gpu Merge pull request #18451 from OrestChura:oc/count_non_zero 2020-09-30 16:07:35 +00:00
infer Merge pull request #18744 from mpashchenkov:mp/onnx-dynamic-input-tensor 2020-11-16 19:24:55 +00:00
internal G-API: Introduce streaming::desync and infer(ROI) 2020-10-29 20:19:15 +03:00
own Merge pull request #18762 from TolyaTalamanov:at/support-garray 2020-11-27 17:39:46 +00:00
render Merge pull request #18600 from TolyaTalamanov:at/implement-render-using-stateful 2020-10-26 19:55:43 +00:00
rmat gapi: eliminate std::rand() and RAND_MAX from tests 2020-11-26 10:20:02 +00:00
s11n Merge pull request #18688 from rgarnov:rg/add_gmatdesc_s11n_nd_test 2020-11-16 19:18:38 +00:00
streaming Merge pull request #18819 from mpashchenkov:mp/ocv-gapi-skip-centos-tests 2020-11-17 22:57:57 +00:00
util GAPI: utils - variant converting ctor and assignment op. reworked 2020-05-20 14:34:55 +03:00
gapi_array_tests.cpp gapi(test): avoid anonymous namespace types as template parameters 2020-11-26 21:37:54 +00:00
gapi_async_test.cpp Merge pull request #16995 from mpashchenkov:mp/ocv-gapi-standalone-mat 2020-04-21 20:22:01 +00:00
gapi_basic_hetero_tests.cpp gapi(test): ban and get rid of countNonZero() checks 2020-02-26 14:19:19 +03:00
gapi_compile_args_tests.cpp Enable state initialization params via compile_args 2020-06-25 00:43:12 +03:00
gapi_desc_tests.cpp Merge pull request #16995 from mpashchenkov:mp/ocv-gapi-standalone-mat 2020-04-21 20:22:01 +00:00
gapi_fluid_parallel_rois_test.cpp Merge pull request #16745 from Volskig:mp/ocv-gapi-standalone-size 2020-04-02 18:19:45 +00:00
gapi_fluid_resize_test.cpp Merge pull request #16745 from Volskig:mp/ocv-gapi-standalone-size 2020-04-02 18:19:45 +00:00
gapi_fluid_roi_test.cpp Merge pull request #16745 from Volskig:mp/ocv-gapi-standalone-size 2020-04-02 18:19:45 +00:00
gapi_fluid_test_kernels.cpp Merge pull request #16805 from Volskig:mp/ocv-gapi-standalone-scalar 2020-04-01 18:40:38 +00:00
gapi_fluid_test_kernels.hpp Merge pull request #15312 from smirnov-alexey:gapi_fluid_garray 2019-09-02 15:51:58 +03:00
gapi_fluid_test.cpp Merge pull request #16995 from mpashchenkov:mp/ocv-gapi-standalone-mat 2020-04-21 20:22:01 +00:00
gapi_frame_tests.cpp G-API: Integrated cv::MediaFrame as I/O type + CPU backend 2020-10-05 20:21:15 +03:00
gapi_gcompiled_tests.cpp Merge pull request #16745 from Volskig:mp/ocv-gapi-standalone-size 2020-04-02 18:19:45 +00:00
gapi_gcomputation_tests.cpp Implement cv.gin and multiple output for python 2020-09-29 13:45:40 +03:00
gapi_gpu_test.cpp Merge pull request #14741 from rgarnov:gapi_fix_includes 2019-06-14 19:27:19 +03:00
gapi_graph_meta_tests.cpp Merge pull request #18904 from mpashchenkov:mp/ocv-gapi-skip-gm-tests 2020-11-24 17:51:02 +00:00
gapi_kernel_tests.cpp Merge pull request #15907 from rgarnov:rg/unique_ptr_for_priv_in_fluid 2020-04-07 14:51:14 +00:00
gapi_mock_kernels.hpp Merge pull request #14741 from rgarnov:gapi_fix_includes 2019-06-14 19:27:19 +03:00
gapi_opaque_tests.cpp gapi(test): avoid anonymous namespace types as template parameters 2020-11-26 21:37:54 +00:00
gapi_plaidml_pipelines.cpp Add implementation in case plaidml isn't found 2020-06-22 00:46:41 +03:00
gapi_planar_test.cpp gapi(test): ban and get rid of countNonZero() checks 2020-02-26 14:19:19 +03:00
gapi_sample_pipelines.cpp Merge pull request #16995 from mpashchenkov:mp/ocv-gapi-standalone-mat 2020-04-21 20:22:01 +00:00
gapi_scalar_tests.cpp gapi(test): ban and get rid of countNonZero() checks 2020-02-26 14:19:19 +03:00
gapi_smoke_test.cpp gapi(test): ban and get rid of countNonZero() checks 2020-02-26 14:19:19 +03:00
gapi_transform_tests.cpp Merge pull request #17020 from dbudniko:dbudniko/serialization_backend 2020-06-26 19:41:29 +00:00
gapi_typed_tests.cpp Merge pull request #17871 from OrestChura:oc/typed_GArray_GMat 2020-07-28 14:20:36 +03:00
gapi_util_tests.cpp Merge pull request #14741 from rgarnov:gapi_fix_includes 2019-06-14 19:27:19 +03:00
opencl_kernels_test_gapi.hpp avoid kernel compile error on Arm SBCs 2020-07-06 18:27:19 +09:00
test_main.cpp Merge pull request #12608 from dmatveev:gapi 2018-09-26 21:50:39 +03:00
test_precomp.hpp gapi: eliminate std::rand() and RAND_MAX from tests 2020-11-26 10:20:02 +00:00