diff options
author | Josh Blum | 2013-04-14 02:07:57 -0700 |
---|---|---|
committer | Josh Blum | 2013-04-14 02:07:57 -0700 |
commit | 445a71cd46511914c4fc7468e784495b7354a02f (patch) | |
tree | 53bdff4410967177e6361909867b3bd57fb19226 /lib/input_handlers.cpp | |
parent | 277dd31b08afcadceec7852012aa8b3c2cecbea7 (diff) | |
parent | 4c1a7bd1a0521476ae3faa92bd601569b4fc87a6 (diff) | |
download | sandhi-445a71cd46511914c4fc7468e784495b7354a02f.tar.gz sandhi-445a71cd46511914c4fc7468e784495b7354a02f.tar.bz2 sandhi-445a71cd46511914c4fc7468e784495b7354a02f.zip |
Merge branch 'benchmark_work'
Diffstat (limited to 'lib/input_handlers.cpp')
-rw-r--r-- | lib/input_handlers.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/input_handlers.cpp b/lib/input_handlers.cpp index da16ba4..faddda8 100644 --- a/lib/input_handlers.cpp +++ b/lib/input_handlers.cpp @@ -12,7 +12,7 @@ void BlockActor::handle_input_tag(const InputTagMessage &message, const Theron:: const size_t index = message.index; //handle incoming stream tag, push into the tag storage - if (this->block_state == BLOCK_STATE_DONE) return; + if GRAS_UNLIKELY(this->block_state == BLOCK_STATE_DONE) return; this->input_tags[index].push_back(message.tag); this->input_tags_changed[index] = true; } @@ -24,7 +24,7 @@ void BlockActor::handle_input_msg(const InputMsgMessage &message, const Theron:: const size_t index = message.index; //handle incoming async message, push into the msg storage - if (this->block_state == BLOCK_STATE_DONE) return; + if GRAS_UNLIKELY(this->block_state == BLOCK_STATE_DONE) return; this->input_msgs[index].push_back(message.msg); this->update_input_avail(index); @@ -39,7 +39,7 @@ void BlockActor::handle_input_buffer(const InputBufferMessage &message, const Th const size_t index = message.index; //handle incoming stream buffer, push into the queue - if (this->block_state == BLOCK_STATE_DONE) return; + if GRAS_UNLIKELY(this->block_state == BLOCK_STATE_DONE) return; this->input_queues.push(index, message.buffer); this->update_input_avail(index); |