diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-29 16:31:30 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-31 19:51:29 -0700 |
| commit | 243790836a40fd3f23d8bd16d8f45430d19aae61 (patch) | |
| tree | 972cd3efcba28932a840aa9af3d244232a1e9711 /src/rt/rust_log.cpp | |
| parent | 6bf8d19712e2310ab6a7da2e82b2287278a772e4 (diff) | |
| download | rust-243790836a40fd3f23d8bd16d8f45430d19aae61.tar.gz rust-243790836a40fd3f23d8bd16d8f45430d19aae61.zip | |
rt: Rename rust_task_thread to rust_sched_loop
This class no longer represents a thread; it just schedules tasks.
Diffstat (limited to 'src/rt/rust_log.cpp')
| -rw-r--r-- | src/rt/rust_log.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp index 17ca875b1ae..ce40eaa3a47 100644 --- a/src/rt/rust_log.cpp +++ b/src/rt/rust_log.cpp @@ -40,9 +40,9 @@ log_console_off(rust_env *env) { } } -rust_log::rust_log(rust_srv *srv, rust_task_thread *thread) : +rust_log::rust_log(rust_srv *srv, rust_sched_loop *sched_loop) : _srv(srv), - _thread(thread) { + _sched_loop(sched_loop) { } rust_log::~rust_log() { @@ -122,12 +122,12 @@ rust_log::trace_ln(rust_task *task, uint32_t level, char *message) { #endif char prefix[BUF_BYTES] = ""; - if (_thread && _thread->name) { + if (_sched_loop && _sched_loop-.name) { append_string(prefix, "%04" PRIxPTR ":%.10s:", - thread_id, _thread->name); + thread_id, _sched_loop->name); } else { append_string(prefix, "%04" PRIxPTR ":0x%08" PRIxPTR ":", - thread_id, (uintptr_t) _thread); + thread_id, (uintptr_t) _sched_loop); } if (task) { if (task->name) { |
