Skip to content

Commit 8b582b3

Browse files
authored
Mark Task::resume_all as unsafe (#86)
1 parent 5337d61 commit 8b582b3

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)