Searched refs:const_new (Results 1 – 16 of 16) sorted by relevance
/external/rust/crates/tokio/tests/ |
D | sync_once_cell.rs | 55 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/ |
D | semaphore.rs | 84 pub const fn const_new(permits: usize) -> Self { in const_new() method 86 ll_sem: ll::Semaphore::const_new(permits), in const_new()
|
D | rwlock.rs | 252 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()
|
D | once_cell.rs | 111 pub const fn const_new() -> Self { in const_new() method 115 semaphore: Semaphore::const_new(1), in const_new()
|
D | mutex.rs | 251 pub const fn const_new(t: T) -> Self in const_new() method 257 s: semaphore::Semaphore::const_new(1), in const_new()
|
D | notify.rs | 223 pub const fn const_new() -> Notify { in const_new() method 226 waiters: Mutex::const_new(LinkedList::new()), in const_new()
|
D | batch_semaphore.rs | 147 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/ |
D | parking_lot.rs | 32 pub(crate) const fn const_new(t: T) -> Mutex<T> { in const_new() method
|
/external/rust/crates/parking_lot/src/ |
D | remutex.rs | 47 ReentrantMutex::const_new( in const_reentrant_mutex()
|
D | fair_mutex.rs | 87 FairMutex::const_new(<RawFairMutex as lock_api::RawMutex>::INIT, val) in const_fair_mutex()
|
D | mutex.rs | 93 Mutex::const_new(<RawMutex as lock_api::RawMutex>::INIT, val) in const_mutex()
|
D | rwlock.rs | 95 RwLock::const_new(<RawRwLock as lock_api::RawRwLock>::INIT, val) in const_rwlock()
|
/external/rust/crates/lock_api/src/ |
D | mutex.rs | 176 pub const fn const_new(raw_mutex: R, val: T) -> Mutex<R, T> { in const_new() method
|
D | remutex.rs | 262 pub const fn const_new(raw_mutex: R, get_thread_id: G, val: T) -> ReentrantMutex<R, G, T> { in const_new() method
|
D | rwlock.rs | 384 pub const fn const_new(raw_rwlock: R, val: T) -> RwLock<R, T> { in const_new() method
|
/external/rust/crates/tokio/src/util/ |
D | linked_list.rs | 452 fn const_new() { in const_new() function
|