Searched refs:latch (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/base/location/test/location_common/source/ |
H A D | common_utils_test.cpp | 260 latch->SetCount(0); 261 latch->Wait(0); // count is 0 262 EXPECT_EQ(0, latch->GetCount()); 268 latch->SetCount(1); 269 latch->Wait(0); // wait 0ms 270 EXPECT_EQ(1, latch->GetCount()); 276 latch->SetCount(1); 277 latch->CountDown(); 284 latch->CountDown(); 291 latch->SetCount(5); [all …]
|
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/utils/test/ |
H A D | test_locks.cpp | 207 explicit SharedMultiCallbackData(std::latch &barrier): CallbackData(), barrier(barrier) in SharedMultiCallbackData() 211 std::latch &barrier; 258 std::latch barrier(2U); in TEST_F() 286 IsAvailableCallbackData(std::latch &b, std::latch &e): begin(b), end(e) in IsAvailableCallbackData() 291 std::latch &begin; 292 std::latch &end; 311 std::latch begin(2U); in TEST_F() 312 std::latch end(2U); in TEST_F()
|
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | net_monitor.cpp | 168 …std::shared_ptr<TinyCountDownLatch> latch = std::make_shared<TinyCountDownLatch>(ONE_URL_DETECT_NU… in SendProbe() local 171 … netId_, netBearType_, netLinkInfo_, latch, latchAll, ProbeType::PROBE_HTTP, httpUrl_, httpsUrl_); in SendProbe() 173 … netId_, netBearType_, netLinkInfo_, latch, latchAll, ProbeType::PROBE_HTTPS, httpUrl_, httpsUrl_); in SendProbe() 182 latch->Await(std::chrono::milliseconds(PRIMARY_DETECTION_RESULT_WAIT_MS)); in SendProbe() 195 …netLinkInfo_, latch, latchAll, ProbeType::PROBE_HTTP_FALLBACK, fallbackHttpUrl_, fallbackHttpsUrl_… in SendProbe() 197 …netLinkInfo_, latch, latchAll, ProbeType::PROBE_HTTPS_FALLBACK, fallbackHttpUrl_, fallbackHttpsUrl… in SendProbe()
|
H A D | probe_thread.cpp | 55 std::shared_ptr<TinyCountDownLatch> latch, std::shared_ptr<TinyCountDownLatch> latchAll, in ProbeThread() argument 57 …: netId_(netId), probeType_(probeType), latch_(latch), latchAll_(latchAll), httpProbeUrl_(httpUrl), in ProbeThread()
|
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/include/ |
H A D | probe_thread.h | 40 std::shared_ptr<TinyCountDownLatch> latch, std::shared_ptr<TinyCountDownLatch> latchAll,
|