diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2010-09-08 19:13:49 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2010-09-08 19:13:49 -0700 |
| commit | 616b7afb724a32df41eebfaf95402d008c60b411 (patch) | |
| tree | 03e13578e8b43b9001cef983d1117800a6f93e65 /src/rt/rust_log.cpp | |
| parent | 13d6f874316c9f69ab3a29f120ce410da2290a64 (diff) | |
| download | rust-616b7afb724a32df41eebfaf95402d008c60b411.tar.gz rust-616b7afb724a32df41eebfaf95402d008c60b411.zip | |
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.
Diffstat (limited to 'src/rt/rust_log.cpp')
| -rw-r--r-- | src/rt/rust_log.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp index fab5098d85a..a57f7cb49c9 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 <stdarg.h> @@ -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) : |
