Function might_sleep

Source
pub fn might_sleep()
Expand description

Annotation for functions that can sleep.

Equivalent to the C side might_sleep(), this function serves as a debugging aid and a potential scheduling point.

This function can only be used in a nonatomic context.