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