Home
last modified time | relevance | path

Searched refs:const_new (Results 1 – 16 of 16) sorted by relevance

/external/rust/crates/tokio/tests/
Dsync_once_cell.rs55 static ONCE: OnceCell<u32> = OnceCell::const_new(); in get_or_init()
79 static ONCE: OnceCell<u32> = OnceCell::const_new(); in get_or_init_panic()
104 static ONCE: OnceCell<u32> = OnceCell::const_new(); in set_and_get()
115 static ONCE: OnceCell<u32> = OnceCell::const_new(); in get_uninit()
122 static ONCE: OnceCell<u32> = OnceCell::const_new(); in set_twice()
137 static ONCE: OnceCell<u32> = OnceCell::const_new(); in set_while_initializing()
163 static ONCE: OnceCell<u32> = OnceCell::const_new(); in get_or_try_init()
/external/rust/crates/tokio/src/sync/
Dsemaphore.rs84 pub const fn const_new(permits: usize) -> Self { in const_new() method
86 ll_sem: ll::Semaphore::const_new(permits), in const_new()
Drwlock.rs252 pub const fn const_new(value: T) -> RwLock<T> in const_new() method
259 s: Semaphore::const_new(MAX_READS as usize), in const_new()
283 s: Semaphore::const_new(max_reads as usize), in const_with_max_readers()
Donce_cell.rs111 pub const fn const_new() -> Self { in const_new() method
115 semaphore: Semaphore::const_new(1), in const_new()
Dmutex.rs251 pub const fn const_new(t: T) -> Self in const_new() method
257 s: semaphore::Semaphore::const_new(1), in const_new()
Dnotify.rs223 pub const fn const_new() -> Notify { in const_new() method
226 waiters: Mutex::const_new(LinkedList::new()), in const_new()
Dbatch_semaphore.rs147 pub(crate) const fn const_new(mut permits: usize) -> Self { in const_new() method
154 waiters: Mutex::const_new(Waitlist { in const_new()
/external/rust/crates/tokio/src/loom/std/
Dparking_lot.rs32 pub(crate) const fn const_new(t: T) -> Mutex<T> { in const_new() method
/external/rust/crates/parking_lot/src/
Dremutex.rs47 ReentrantMutex::const_new( in const_reentrant_mutex()
Dfair_mutex.rs87 FairMutex::const_new(<RawFairMutex as lock_api::RawMutex>::INIT, val) in const_fair_mutex()
Dmutex.rs93 Mutex::const_new(<RawMutex as lock_api::RawMutex>::INIT, val) in const_mutex()
Drwlock.rs95 RwLock::const_new(<RawRwLock as lock_api::RawRwLock>::INIT, val) in const_rwlock()
/external/rust/crates/lock_api/src/
Dmutex.rs176 pub const fn const_new(raw_mutex: R, val: T) -> Mutex<R, T> { in const_new() method
Dremutex.rs262 pub const fn const_new(raw_mutex: R, get_thread_id: G, val: T) -> ReentrantMutex<R, G, T> { in const_new() method
Drwlock.rs384 pub const fn const_new(raw_rwlock: R, val: T) -> RwLock<R, T> { in const_new() method
/external/rust/crates/tokio/src/util/
Dlinked_list.rs452 fn const_new() { in const_new() function