rt: Protect rust_task::state with a lock

This commit is contained in:
Brian Anderson
2012-03-02 21:22:42 -08:00
parent d7298a797b
commit b2a075e20d
3 changed files with 15 additions and 5 deletions

View File

@@ -259,7 +259,7 @@ rust_task_thread::start_main_loop() {
", state: %s",
scheduled_task->name,
(uintptr_t)scheduled_task,
scheduled_task->state->name);
scheduled_task->get_state()->name);
place_task_in_tls(scheduled_task);
@@ -273,7 +273,7 @@ rust_task_thread::start_main_loop() {
" in state '%s', worker id=%d" PRIxPTR,
scheduled_task->name,
(uintptr_t)scheduled_task,
scheduled_task->state->name,
scheduled_task->get_state()->name,
id);
reap_dead_tasks();