From ecbd0c699884e8da150cfdcab836b1ffd5487f67 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 14 Apr 2013 01:07:27 -0700 Subject: gras: added more GRAS_UNLIKELY in handlers --- lib/output_handlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/output_handlers.cpp') 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(); -- cgit