From 6d07c50dafbe38049dbede7241e9e66eea0a699e Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 15 Jul 2013 23:51:59 -0700 Subject: gras: make all start/commit messages high-prio This makes doing live topology changes w/ commit instant, even if much buffering is backed up. --- lib/top_block.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'lib/top_block.cpp') diff --git a/lib/top_block.cpp b/lib/top_block.cpp index 74d9523..0c8572d 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -50,22 +50,26 @@ void TopBlock::start(void) { (*this)->executor->commit(); { - (*this)->executor->post_all((*this)->thread_group); + TopThreadMessage message; + message.thread_group = (*this)->thread_group; + (*this)->bcast_prio_msg(message); } { TopTokenMessage message; message.token = (*this)->token; - (*this)->executor->post_all(message); + (*this)->bcast_prio_msg(message); } { //send the global block config before alloc - (*this)->executor->post_all((*this)->top_config); + TopConfigMessage message; + message.config = (*this)->top_config; + (*this)->bcast_prio_msg(message); } { - (*this)->executor->post_all(TopAllocMessage()); + (*this)->bcast_prio_msg(TopAllocMessage()); } { - (*this)->executor->post_all(TopActiveMessage()); + (*this)->bcast_prio_msg(TopActiveMessage()); } } -- cgit