Searched refs:Backend (Results 1 – 6 of 6) sorted by relevance
| /rust/kernel/sync/ |
| A D | lock.rs | 37 pub unsafe trait Backend { interface 106 pub struct Lock<T: ?Sized, B: Backend> { 122 unsafe impl<T: ?Sized + Send, B: Backend> Send for Lock<T, B> {} 126 unsafe impl<T: ?Sized + Send, B: Backend> Sync for Lock<T, B> {} 128 impl<T, B: Backend> Lock<T, B> { 143 impl<B: Backend> Lock<(), B> { 165 impl<T: ?Sized, B: Backend> Lock<T, B> { 193 pub struct Guard<'a, T: ?Sized, B: Backend> { 202 impl<'a, T: ?Sized, B: Backend> Guard<'a, T, B> { 261 impl<T: ?Sized, B: Backend> Drop for Guard<'_, T, B> { [all …]
|
| A D | condvar.rs | 8 use super::{lock::Backend, lock::Guard, LockClassKey}; 114 fn wait_internal<T: ?Sized, B: Backend>( in wait_internal() 145 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait() 156 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait_interruptible() 168 pub fn wait_interruptible_freezable<T: ?Sized, B: Backend>( in wait_interruptible_freezable() 186 pub fn wait_interruptible_timeout<T: ?Sized, B: Backend>( in wait_interruptible_timeout()
|
| A D | locked_by.rs | 5 use super::{lock::Backend, lock::Lock}; 102 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new()
|
| /rust/kernel/sync/lock/ |
| A D | global.rs | 9 sync::lock::{Backend, Guard, Lock}, 28 type Backend: Backend + 'static; typedef 37 inner: Lock<B::Item, B::Backend>, 71 B::Backend::init( in init() 98 inner: Guard<'static, B::Item, B::Backend>, 272 type Backend = $crate::global_lock_inner!(backend $kind);
|
| A D | mutex.rs | 101 unsafe impl super::Backend for MutexBackend {
|
| A D | spinlock.rs | 100 unsafe impl super::Backend for SpinLockBackend {
|
Completed in 8 milliseconds