about summary refs log tree commit diff
path: root/src/rt/circular_buffer.cpp
diff options
context:
space:
mode:
authorMichael Bebenita <mbebenita@mozilla.com>2010-08-11 16:08:26 -0700
committerMichael Bebenita <mbebenita@mozilla.com>2010-08-11 16:08:45 -0700
commit74e12fcef682acdbec6c3f4a3fb29b7583e7d1b6 (patch)
tree73abc23ff1587457b10279bc79d879d2e620f0be /src/rt/circular_buffer.cpp
parentc56ecc1d560a51878ffa4648d08110671707ae30 (diff)
downloadrust-74e12fcef682acdbec6c3f4a3fb29b7583e7d1b6.tar.gz
rust-74e12fcef682acdbec6c3f4a3fb29b7583e7d1b6.zip
Ignore upcall_flush for channels that are disassociated from ports. This makes task-comm-10 break a little less hard, but it still leaks because messages pending in the channel are never freed.
Diffstat (limited to 'src/rt/circular_buffer.cpp')
-rw-r--r--src/rt/circular_buffer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/circular_buffer.cpp b/src/rt/circular_buffer.cpp
index dbf5059bf22..caa9535907e 100644
--- a/src/rt/circular_buffer.cpp
+++ b/src/rt/circular_buffer.cpp
@@ -142,3 +142,8 @@ bool
 circular_buffer::is_empty() {
     return _unread == 0;
 }
+
+size_t
+circular_buffer::size() {
+    return _unread;
+}