mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
fix cfail tests
This commit is contained in:
parent
404dde6f2a
commit
aa0347e36c
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ fn j1(prio: P2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn j2(prio: P0) {
|
fn j2(prio: P0) {
|
||||||
let c16 = rtfm::critical(
|
let c16 = rtfm::atomic(
|
||||||
|c16| {
|
|c16| {
|
||||||
// forbidden: ceiling token can't outlive the critical section
|
// forbidden: ceiling token can't outlive the critical section
|
||||||
c16 //~ error
|
c16 //~ error
|
||||||
|
|
|
@ -18,7 +18,7 @@ fn j1(prio: P1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn j2(_task: Task, prio: P3) {
|
fn j2(_task: Task, prio: P3) {
|
||||||
rtfm::critical(
|
rtfm::atomic(
|
||||||
|ceil| {
|
|ceil| {
|
||||||
// OK C2 (R1's ceiling) <= C16 (system ceiling)
|
// OK C2 (R1's ceiling) <= C16 (system ceiling)
|
||||||
// BAD C2 (R1's ceiling) < P3 (j2's priority)
|
// BAD C2 (R1's ceiling) < P3 (j2's priority)
|
||||||
|
|
Loading…
Reference in a new issue