summaryrefslogtreecommitdiff
path: root/altoslib/AltosLib.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-17 16:12:18 -0700
committerKeith Packard <keithp@keithp.com>2012-06-17 16:12:18 -0700
commit9d3fe2a80d0925e3eded6d738d05c5b4ea61504c (patch)
tree11ff8073f52a98fdd74ab9887f567c3a17a0d42a /altoslib/AltosLib.java
parent4e6d96816e6604ee8d9bb49345a1c1211699a655 (diff)
altos: Don't lose IRQ disabled state in ao_sleep
Using ao_arch_critical around the wchan setting will force interrupts to be re-enabled before ao_yield records the state of that bit, potentially causing problems with functions not atomically testing and sleeping. Tasks that need to set wchan with interrupts disabled should have interrupts disabled when entering ao_sleep already. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosLib.java')
0 files changed, 0 insertions, 0 deletions