☰
In kernel::sync
Modules
rcu
smutex
Structs
Arc
ArcBorrow
CondVar
Guard
LockClassKey
LockedBy
Mutex
NoWaitLock
NoWaitLockGuard
RawSpinLock
ReadLock
Revocable
RevocableGuard
RwSemaphore
SeqLock
SeqLockReadGuard
SpinLock
StaticArc
UniqueArc
WriteLock
Traits
Lock
LockFactory
LockInfo
LockIniter
NeedsLockClass
Functions
cond_resched
new_refcount
Type Definitions
RevocableMutex
RevocableMutexGuard
RevocableRwSemaphore
RevocableRwSemaphoreGuard
?
Function
kernel
::
sync
::
cond_resched
source
·
[
−
]
pub fn cond_resched() ->
bool
Expand description
Reschedules the caller’s task if needed.
This documentation is an old archive. Please see
https://rust.docs.kernel.org
instead.