aboutsummaryrefslogtreecommitdiff
path: root/src/rt/circular_buffer.cpp
diff options
context:
space:
mode:
authorMichael Bebenita <[email protected]>2010-07-28 00:02:00 -0700
committerGraydon Hoare <[email protected]>2010-07-28 20:30:29 -0700
commitc1795a1046fa0399711d56765ff864b559bcb91e (patch)
tree75d440d682cbc1411b5fac6925b618642c39237d /src/rt/circular_buffer.cpp
parentAdd comment explaining NULL case in circular_buffer::enqueue and add logging ... (diff)
downloadrust-c1795a1046fa0399711d56765ff864b559bcb91e.tar.xz
rust-c1795a1046fa0399711d56765ff864b559bcb91e.zip
Change unread-on-destroy condition for circular buffer to merely a warning.
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 1b626920..101d0176 100644
--- a/src/rt/circular_buffer.cpp
+++ b/src/rt/circular_buffer.cpp
@@ -35,7 +35,7 @@ circular_buffer::~circular_buffer() {
"~circular_buffer 0x%" PRIxPTR,
this);
I(dom, _buffer);
- // I(dom, _unread == 0);
+ W(dom, _unread == 0, "~circular_buffer with unread messages.");
dom->free(_buffer);
}