[−][src]Trait tokio_lk::New
Required methods
Loading content...Implementors
impl New<Arc<Mutex<HashMap<usize, Arc<(AtomicUsize, AtomicUsize, AtomicSerialWaker)>, RandomState>>>> for Lock<MapType>
[src]
fn new(target: usize, map: KeyPool<MapType>) -> Self
[src]
Create a Lock instance.
This operation might block threads from parking for a while
Don't use this function inside tokio context
please refer to fnew
function to provide asynchrons Lock
instance generation
impl New<Arc<DashMap<usize, Arc<(AtomicUsize, AtomicUsize, AtomicSerialWaker)>, RandomState>>> for Lock<DashMapType>
[src]
fn new(target: usize, map: KeyPool<DashMapType>) -> Self
[src]
Create a Lock instance.
This operation might block threads from parking for a while
Don't use this function inside tokio context
please refer to fnew
function to provide asynchrons Lock
instance generation