diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-06-21 16:52:07 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-06-21 16:52:07 -0700 |
| commit | 95eb01957bf23922abdf083f677c6c2d6927713a (patch) | |
| tree | 5c0fdfe373b011f5e72cf13f1547fc3aac67921d /src/rt/rust_builtin.cpp | |
| parent | 1b7c99655f300aa0b8ba216cd2029dc588c3ef88 (diff) | |
| download | rust-95eb01957bf23922abdf083f677c6c2d6927713a.tar.gz rust-95eb01957bf23922abdf083f677c6c2d6927713a.zip | |
std: Make console log off/on controls work with newsched
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 86b8881b9f2..f0b68d4a156 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -591,12 +591,18 @@ rust_log_console_on() { log_console_on(); } -extern void log_console_off(rust_env *env); +extern void log_console_off(); extern "C" CDECL void rust_log_console_off() { - rust_task *task = rust_get_current_task(); - log_console_off(task->kernel->env); + log_console_off(); +} + +extern bool should_log_console(); + +extern "C" CDECL uintptr_t +rust_should_log_console() { + return (uintptr_t)should_log_console(); } extern "C" CDECL void |
