Home
last modified time | relevance | path

Searched defs:sem (Results 1 – 5 of 5) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
Dsemaphore_test.rs29 let sem = Arc::new(AutoRelSemaphore::new(1).unwrap()); in sdv_auto_release_sem_acquire_test() localVariable
49 let sem = AutoRelSemaphore::new(1).unwrap(); in sdv_auto_release_sem_try_acquire_test() localVariable
67 let sem = Semaphore::new(2).unwrap(); in sdv_release_test() localVariable
81 let sem = Arc::new(AutoRelSemaphore::new(2).unwrap()); in sdv_auto_release_sem_close_test() localVariable
103 let sem = Arc::new(AutoRelSemaphore::new(5).unwrap()); in sdv_auto_release_sem_stress_test() localVariable
141 let sem = Arc::new(AutoRelSemaphore::new(1).unwrap()); in sdv_async_stress_test() localVariable
163 let sem = Semaphore::new(2).unwrap(); in sdv_try_acquire_test() localVariable
185 let sem = Arc::new(Semaphore::new(0).unwrap()); in sdv_acquire_test() localVariable
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
Dsemaphore.rs91 sem: &'a AutoRelSemaphore, field
362 let sem = Semaphore::new(4).unwrap(); in ut_sem_close_test() localVariable
377 let sem = Arc::new(AutoRelSemaphore::new(1).unwrap()); in ut_auto_release_sem_acquire_test() localVariable
395 let sem = Semaphore::new(2).unwrap(); in ut_release_test() localVariable
409 let sem = Arc::new(AutoRelSemaphore::new(2).unwrap()); in ut_auto_release_sem_close_test() localVariable
432 let sem = Arc::new(AutoRelSemaphore::new(5).unwrap()); in ut_auto_release_sem_stress_test() localVariable
469 let sem = Arc::new(AutoRelSemaphore::new(1).unwrap()); in ut_async_stress_test() localVariable
491 let sem = Semaphore::new(2).unwrap(); in ut_try_acquire_test() localVariable
513 let sem = Arc::new(Semaphore::new(0).unwrap()); in ut_acquire_test() localVariable
Dwaiter.rs42 sem: SemaphoreInner, field
Dmutex.rs37 sem: SemaphoreInner, field
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
Ddispatcher.rs200 pub(crate) sem: Option<WrappedSemPermit>, field
265 sem: Arc<Semaphore>, field
304 pub(crate) sem: Arc<Semaphore>, field