summaryrefslogtreecommitdiff
path: root/lib/output_handlers.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-04-14 01:07:27 -0700
committerJosh Blum2013-04-14 01:07:27 -0700
commitecbd0c699884e8da150cfdcab836b1ffd5487f67 (patch)
treeeb07803391849ef872ea8c77111b129f3379d826 /lib/output_handlers.cpp
parent21026256a3f9cbfd5c35a1a60984bc448e831eba (diff)
downloadsandhi-ecbd0c699884e8da150cfdcab836b1ffd5487f67.tar.gz
sandhi-ecbd0c699884e8da150cfdcab836b1ffd5487f67.tar.bz2
sandhi-ecbd0c699884e8da150cfdcab836b1ffd5487f67.zip
gras: added more GRAS_UNLIKELY in handlers
Diffstat (limited to 'lib/output_handlers.cpp')
-rw-r--r--lib/output_handlers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output_handlers.cpp b/lib/output_handlers.cpp
index 17244ee..e0c3a52 100644
--- a/lib/output_handlers.cpp
+++ b/lib/output_handlers.cpp
@@ -14,7 +14,7 @@ void BlockActor::handle_output_buffer(const OutputBufferMessage &message, const
//a buffer has returned from the downstream
//(all interested consumers have finished with it)
- if (this->block_state == BLOCK_STATE_DONE) return;
+ if GRAS_UNLIKELY(this->block_state == BLOCK_STATE_DONE) return;
this->output_queues.push(index, message.buffer);
ta.done();