rt: Protect cond and cond_name with the state_lock

This commit is contained in:
Brian Anderson
2012-03-02 23:40:27 -08:00
parent 0432030c27
commit 237652299e
3 changed files with 21 additions and 16 deletions

View File

@@ -209,7 +209,8 @@ rust_task_thread::log_state() {
log(NULL, log_debug, "\t task: %s @0x%" PRIxPTR ", blocked on: 0x%"
PRIxPTR " '%s'",
blocked_tasks[i]->name, blocked_tasks[i],
blocked_tasks[i]->cond, blocked_tasks[i]->cond_name);
blocked_tasks[i]->get_cond(),
blocked_tasks[i]->get_cond_name());
}
}