Skip to content

Commit a3a2f6c

Browse files
committed
Mark Task::resume_all as unsafe
1 parent ee789cf commit a3a2f6c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

freertos-rust/src/task.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ impl Task {
123123
}
124124
}
125125

126-
pub fn resume_all() {
126+
/// # Safety
127+
///
128+
/// For every call to this method there must be a matching previous call to
129+
/// `Task::suspend_all`.
130+
pub unsafe fn resume_all() {
127131
unsafe {
128132
freertos_rs_xTaskResumeAll();
129133
}

0 commit comments

Comments
 (0)