void initialize(char const* p) { // We can only be called once. HPX_ASSERT(!init.occurred()); msg = p; init.set(); }
namespace broadcastCatching { hpx::lcos::local::event block_boilerplatesReady; std::vector<block_boilerplate> block_boilerplates; void catchBroadcast(std::vector<block_boilerplate> globalBlocks){ block_boilerplates = globalBlocks; block_boilerplatesReady.set(); } std::vector<block_boilerplate> waitBroadcast(){ block_boilerplatesReady.wait(); return block_boilerplates; } }
std::vector<block_boilerplate> waitBroadcast(){ block_boilerplatesReady.wait(); return block_boilerplates; }
void catchBroadcast(std::vector<block_boilerplate> globalBlocks){ block_boilerplates = globalBlocks; block_boilerplatesReady.set(); }