diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2012-07-24 15:27:45 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2012-07-24 15:28:35 -0400 |
| commit | ae094a7adc8e0f166ea2b137c2940afdb9396bcd (patch) | |
| tree | 49d21e0d95ea214b2d3e161d2afc9a00d473032f /src/rt/rust_task.h | |
| parent | 9103e439091fbd4e5ec7e561f007172342065340 (diff) | |
| download | rust-ae094a7adc8e0f166ea2b137c2940afdb9396bcd.tar.gz rust-ae094a7adc8e0f166ea2b137c2940afdb9396bcd.zip | |
Add 'do atomically { .. }' for exclusives
Diffstat (limited to 'src/rt/rust_task.h')
| -rw-r--r-- | src/rt/rust_task.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 2db882d11e3..985e1ebe6e8 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -185,6 +185,7 @@ private: // Indicates that we've called back into Rust from C bool reentered_rust_stack; unsigned long disallow_kill; + unsigned long disallow_yield; // The stack used for running C code, borrowed from the scheduler thread stk_seg *c_stack; @@ -318,6 +319,8 @@ public: void inhibit_kill(); void allow_kill(); + void inhibit_yield(); + void allow_yield(); }; // FIXME (#2697): It would be really nice to be able to get rid of this. |
