/ohos5.0/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_publish_ordered_system_test/ |
H A D | common_event_services_publish_ordered_system_test.cpp | 166 while (!g_mtx.try_lock()) { in ProcessSubscriberTestCase3() 197 while (!g_mtx.try_lock()) { in ProcessSubscriberTestCase5() 228 while (!g_mtx.try_lock()) { in AsyncProcess() 483 while (!g_mtx.try_lock()) { 508 while (!g_mtxAnother.try_lock()) { 598 while (!g_mtx.try_lock()) { 621 while (!g_mtxAnother.try_lock()) { 711 while (!g_mtx.try_lock()) { 732 while (!g_mtxAnother.try_lock()) { 824 while (!g_mtx.try_lock()) { [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/ |
H A D | mutex.rs | 123 pub fn try_lock(&self) -> Result<MutexGuard<'_, T>, LockError> { in try_lock() method 234 let mut lock = mutex.try_lock().unwrap(); in ut_mutex_try_lock_01() 266 let lock2 = mutex.try_lock(); in ut_mutex_try_lock_02() 284 assert!(mutex.try_lock().is_err()); in ut_mutex_unlock_01() 286 assert!(mutex.try_lock().is_ok()); in ut_mutex_unlock_01()
|
/ohos5.0/base/notification/common_event_service/services/test/moduletest/common_event_services_publish_ordered_module_test/ |
H A D | common_event_services_publish_ordered_module_test.cpp | 176 while (!g_mtx.try_lock()) { in ProcessSubscriberTestCase3() 209 while (!g_mtx.try_lock()) { in ProcessSubscriberTestCase5() 241 while (!g_mtx.try_lock()) { in AsyncProcess() 498 while (!g_mtx.try_lock()) { 523 while (!g_mtxAnother.try_lock()) { 616 while (!g_mtx.try_lock()) { 641 while (!g_mtxAnother.try_lock()) { 728 while (!g_mtx.try_lock()) { 841 while (!g_mtx.try_lock()) { 953 while (!g_mtx.try_lock()) { [all …]
|
/ohos5.0/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/ |
H A D | common_event_services_system_test.cpp | 702 while (!mtx_.try_lock()) { 741 while (!mtx_.try_lock()) { 779 while (!mtx_.try_lock()) { 819 while (!mtx_.try_lock()) { 859 while (!mtx_.try_lock()) { 929 while (!mtx_.try_lock()) { 1023 while (!mtx_.try_lock()) { 1095 while (!mtx_.try_lock()) { 1135 while (!mtx_.try_lock()) { 1205 while (!mtx_.try_lock()) { [all …]
|
/ohos5.0/foundation/resourceschedule/ffrt/src/sync/ |
H A D | mutex.cpp | 34 bool mutexPrivate::try_lock() in try_lock() function in ffrt::mutexPrivate 79 bool RecursiveMutexPrivate::try_lock() in try_lock() function in ffrt::RecursiveMutexPrivate 87 if (mt.try_lock()) { in try_lock() 110 if (mt.try_lock()) { in try_lock() 383 return p->try_lock() ? ffrt_success : ffrt_error_busy;
|
H A D | mutex_private.h | 109 virtual bool try_lock() {return false;} in try_lock() function 132 bool try_lock() override; 141 bool try_lock() override;
|
H A D | sync.h | 81 bool try_lock() in try_lock() function
|
/ohos5.0/foundation/resourceschedule/ffrt/interfaces/kits/cpp/ |
H A D | mutex.h | 44 inline bool try_lock() in try_lock() function 78 inline bool try_lock() in try_lock() function
|
/ohos5.0/base/notification/common_event_service/tools/test/systemtest/cem/ |
H A D | common_event_command_publish_system_test.cpp | 183 while (!mtx.try_lock()) { 243 while (!mtx.try_lock()) { 303 while (!mtx.try_lock()) { 363 while (!mtx.try_lock()) {
|
/ohos5.0/base/notification/common_event_service/services/test/unittest/ |
H A D | common_event_publish_ordered_event_unit_test.cpp | 164 while (!mtx.try_lock()) { 258 while (!mtx.try_lock()) { 304 while (!mtx.try_lock()) { 604 while (!mtx.try_lock()) { 661 while (!mtx.try_lock()) { 718 while (!mtx.try_lock()) { 775 while (!mtx.try_lock()) {
|
H A D | common_event_freeze_test.cpp | 424 while (!mtx.try_lock()) { 486 while (!mtx.try_lock()) {
|
/ohos5.0/foundation/resourceschedule/ffrt/interfaces/inner_api/cpp/ |
H A D | shared_mutex.h | 49 inline bool try_lock() in try_lock() function
|
/ohos5.0/foundation/multimedia/media_foundation/interface/inner_api/osal/task/ |
H A D | mutex.h | 43 bool try_lock();
|
/ohos5.0/foundation/resourceschedule/ffrt/test/ut/testcase/ |
H A D | ut_condition.cpp | 195 val = lock.try_lock(); 198 val = lock.try_lock();
|
H A D | ut_csync.cpp | 91 val = lock.try_lock(); 94 val = lock.try_lock(); 616 bool ret = smtx.try_lock(); in TryLockTest() 623 ret = smtx.try_lock(); in TryLockTest()
|
/ohos5.0/foundation/multimedia/media_foundation/src/osal/task/pthread/ |
H A D | mutex.cpp | 49 bool Mutex::try_lock() in try_lock() function in OHOS::Media::Mutex
|
/ohos5.0/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/ |
H A D | common_event_services_module_test.cpp | 593 while (!mtx_.try_lock()) { 637 while (!mtx_.try_lock()) { 686 while (!mtx_.try_lock()) { 735 while (!mtx_.try_lock()) { 784 while (!mtx_.try_lock()) { 856 while (!mtx_.try_lock()) { 906 while (!mtx_.try_lock()) { 1318 while (!mtx_.try_lock()) { 1424 while (!mtx_.try_lock()) {
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/ |
H A D | shader_cache.h | 32 explicit OptionalLockGuard(std::mutex& m): mtx(m), status(m.try_lock()) {} in OptionalLockGuard()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/sys/unix/ |
H A D | zombie_manager.rs | 50 if let Ok(mut guard) = self.child_signal.try_lock() { in release_zombie()
|
/ohos5.0/base/notification/common_event_service/test/systemtest/common/ces/ces_check_service/ |
H A D | ces_check_service.cpp | 129 while (!mtx_.try_lock()) {
|
/ohos5.0/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/ |
H A D | actsCESManagertest.cpp | 1918 while (!g_mtx.try_lock()) { 1959 while (!g_mtx.try_lock()) { 2001 while (!g_mtx.try_lock()) { 2043 while (!g_mtx.try_lock()) { 2088 while (!g_mtx.try_lock()) { 2133 while (!g_mtx.try_lock()) { 2312 while (!g_mtx.try_lock()) { 2360 while (!g_mtx.try_lock()) { 2408 while (!g_mtx.try_lock()) { 2451 while (!g_mtx.try_lock()) { [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/h2/io/ |
H A D | split.rs | 125 match self.stream.try_lock() { in get_lock()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/ |
H A D | parker.rs | 88 if let Ok(mut driver) = self.driver.try_lock() { in park()
|
/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | buffer_object_unittest.cpp | 565 EXPECT_EQ(object.sendMutex_.try_lock(), true); 579 EXPECT_EQ(object.recvMutex_.try_lock(), true);
|
/ohos5.0/base/update/updater/services/ui/control/ |
H A D | event_listener.cpp | 74 if (!lock.try_lock()) { in CallbackWithGuard()
|