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