From 616b7afb724a32df41eebfaf95402d008c60b411 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 8 Sep 2010 19:13:49 -0700 Subject: Tidy up the sync dir, remove dead or mis-designed code in favour of OS primitives, switch rust_kernel to use a lock/signal pair and wait rather than spin. --- src/rt/rust_log.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/rt/rust_log.cpp') diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp index fab5098d..a57f7cb4 100644 --- a/src/rt/rust_log.cpp +++ b/src/rt/rust_log.cpp @@ -4,7 +4,6 @@ */ #include "rust_internal.h" -#include "sync/spin_lock.h" #include "util/array_list.h" #include @@ -64,7 +63,7 @@ static const char * _foreground_colors[] = { "[37m", /** * Synchronizes access to the underlying logging mechanism. */ -static spin_lock _log_lock; +static lock_and_signal _log_lock; static uint32_t _last_thread_id; rust_log::rust_log(rust_srv *srv, rust_dom *dom) : -- cgit v1.2.3