aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/lock.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2017-07-18 20:03:22 -0500
committerJorge Aparicio <jorge@japaric.io>2017-07-18 20:03:22 -0500
commit97a7e38db7eb0643a6334aba30077622d09e5c85 (patch)
treea561e574a8cb36b748c84f69ee679fe0e61f1899 /tests/cfail/lock.rs
parenta2b0c9e0d077870441ecdea00108c3a3a394fd9b (diff)
tasks / idle have exclusive access to Threshold, but do not own the token
Diffstat (limited to 'tests/cfail/lock.rs')
-rw-r--r--tests/cfail/lock.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cfail/lock.rs b/tests/cfail/lock.rs
index f93b79a..736027e 100644
--- a/tests/cfail/lock.rs
+++ b/tests/cfail/lock.rs
@@ -45,7 +45,7 @@ fn idle() -> ! {
task!(EXTI0, exti0);
-fn exti0(mut t: Threshold, r: EXTI0::Resources) {
+fn exti0(mut t: &mut Threshold, r: EXTI0::Resources) {
// OK need to lock to access the resource
if r.STATE.claim(&mut t, |state, _| **state) {}
@@ -55,7 +55,7 @@ fn exti0(mut t: Threshold, r: EXTI0::Resources) {
task!(EXTI1, exti1);
-fn exti1(mut t: Threshold, r: EXTI1::Resources) {
+fn exti1(mut t: &mut Threshold, r: EXTI1::Resources) {
// ERROR no need to lock. Has direct access because priority == ceiling
if r.STATE.claim(&mut t, |state, _| **state) {
//~^ error no method named `claim` found for type