pub fn with_new_current_task<F, R>(
locked: &mut Locked<Unlocked>,
system_task: &WeakRef<Task>,
task_name: String,
f: F,
) -> Result<R, Errno>Expand description
Create a new system task, register it on the thread and run the given closure with it.