about summary refs log tree commit diff
path: root/src/rt/circular_buffer.cpp
diff options
context:
space:
mode:
authorEric Holk <eholk@mozilla.com>2011-07-25 18:00:37 -0700
committerEric Holk <eholk@mozilla.com>2011-07-28 10:47:28 -0700
commit5302cde188bba80dd38c58eaafa792d621b0818c (patch)
tree663ca3e81a7254548e756ea0dfef66d4362f971a /src/rt/circular_buffer.cpp
parente697a52359874c2b7387be96e664b1f94b14255b (diff)
downloadrust-5302cde188bba80dd38c58eaafa792d621b0818c.tar.gz
rust-5302cde188bba80dd38c58eaafa792d621b0818c.zip
Made task threads wait instead of sleep, so they can be woken up. This appears to give us much better parallel performance.
Also, commented out one more unsafe log and updated rust_kernel.cpp to compile under g++
Diffstat (limited to 'src/rt/circular_buffer.cpp')
-rw-r--r--src/rt/circular_buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/circular_buffer.cpp b/src/rt/circular_buffer.cpp
index aa0127d8c25..ba098bbee3f 100644
--- a/src/rt/circular_buffer.cpp
+++ b/src/rt/circular_buffer.cpp
@@ -123,7 +123,7 @@ circular_buffer::dequeue(void *dst) {
     if (dst != NULL) {
         memcpy(dst, &_buffer[_next], unit_sz);
     }
-    DLOG(sched, mem, "shifted data from index %d", _next);
+    //DLOG(sched, mem, "shifted data from index %d", _next);
     _unread -= unit_sz;
     _next += unit_sz;
     if (_next == _buffer_sz) {