openvino/tests/stress_tests/common/infer_api
Yuan Hu 1a4ae5e7a3
[core] fix thread safe issue in #19832 (#24562)
### Details:
- *I lost code `t_stream_count_map[(void*)this] = item.first;` in
#19832*
 - *the thread safe issue happen in below workflow*
 - create thread A
call CustomThreadLocal:local() in thread A -> create stream A (the count
of stream A is 2)
   destory thread A (the count of stream A is 1)
   create thread B (same thread id with thread A)
call CustomThreadLocal:local() in thread B -> use stream A(the count of
stream A is 1, so it's broken)
- *add testcase, also fix
https://github.com/openvinotoolkit/openvino/pull/19986/files#r1332774754*

### Tickets:
 - Closes https://github.com/openvinotoolkit/openvino/issues/24509

---------

Signed-off-by: HU Yuan2 <yuan2.hu@intel.com>
Co-authored-by: Wanglei Shen <wanglei.shen@intel.com>
2024-05-23 11:47:57 +00:00
..
infer_api.cpp [core] fix thread safe issue in #19832 (#24562) 2024-05-23 11:47:57 +00:00
infer_api.h [core] fix thread safe issue in #19832 (#24562) 2024-05-23 11:47:57 +00:00