Home
last modified time | relevance | path

Searched refs:try_lock (Results 1 – 25 of 51) sorted by relevance

123

/ohos5.0/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_publish_ordered_system_test/
H A Dcommon_event_services_publish_ordered_system_test.cpp166 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 Dmutex.rs123 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 Dcommon_event_services_publish_ordered_module_test.cpp176 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 Dcommon_event_services_system_test.cpp702 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 Dmutex.cpp34 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 Dmutex_private.h109 virtual bool try_lock() {return false;} in try_lock() function
132 bool try_lock() override;
141 bool try_lock() override;
H A Dsync.h81 bool try_lock() in try_lock() function
/ohos5.0/foundation/resourceschedule/ffrt/interfaces/kits/cpp/
H A Dmutex.h44 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 Dcommon_event_command_publish_system_test.cpp183 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 Dcommon_event_publish_ordered_event_unit_test.cpp164 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 Dcommon_event_freeze_test.cpp424 while (!mtx.try_lock()) {
486 while (!mtx.try_lock()) {
/ohos5.0/foundation/resourceschedule/ffrt/interfaces/inner_api/cpp/
H A Dshared_mutex.h49 inline bool try_lock() in try_lock() function
/ohos5.0/foundation/multimedia/media_foundation/interface/inner_api/osal/task/
H A Dmutex.h43 bool try_lock();
/ohos5.0/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_condition.cpp195 val = lock.try_lock();
198 val = lock.try_lock();
H A Dut_csync.cpp91 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 Dmutex.cpp49 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 Dcommon_event_services_module_test.cpp593 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 Dshader_cache.h32 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 Dzombie_manager.rs50 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 Dces_check_service.cpp129 while (!mtx_.try_lock()) {
/ohos5.0/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/
H A DactsCESManagertest.cpp1918 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 Dsplit.rs125 match self.stream.try_lock() { in get_lock()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
H A Dparker.rs88 if let Ok(mut driver) = self.driver.try_lock() { in park()
/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/
H A Dbuffer_object_unittest.cpp565 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 Devent_listener.cpp74 if (!lock.try_lock()) { in CallbackWithGuard()

123