Ejemplo n.º 1
0
 void initialize(char const* p)
 {
     // We can only be called once.
     HPX_ASSERT(!init.occurred());
     msg = p;
     init.set();
 }
Ejemplo n.º 2
0
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;
	}
}
Ejemplo n.º 3
0
	std::vector<block_boilerplate> waitBroadcast(){
		block_boilerplatesReady.wait();
		return block_boilerplates;
	}
Ejemplo n.º 4
0
	void catchBroadcast(std::vector<block_boilerplate> globalBlocks){
		block_boilerplates = globalBlocks;
		block_boilerplatesReady.set();
	}