12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #ifndef BOOST_PROPERTY_MAP_PARALLEL_PROCESS_GROUP_HPP
- #define BOOST_PROPERTY_MAP_PARALLEL_PROCESS_GROUP_HPP
- #include <cstdlib>
- #include <utility>
- namespace boost { namespace parallel {
- struct attach_distributed_object { };
- enum trigger_receive_context {
-
- trc_none,
-
-
- trc_in_synchronization,
-
-
-
-
- trc_early_receive,
-
-
- trc_out_of_band,
-
-
-
- trc_irecv_out_of_band
- };
- struct process_group_tag {};
- struct linear_process_group_tag : virtual process_group_tag {};
- struct messaging_process_group_tag : virtual process_group_tag {};
- struct immediate_process_group_tag : virtual messaging_process_group_tag {};
- struct bsp_process_group_tag : virtual messaging_process_group_tag {};
- struct batch_process_group_tag : virtual messaging_process_group_tag {};
- struct locking_process_group_tag : virtual process_group_tag {};
- struct spawning_process_group_tag : virtual process_group_tag {};
- struct process_group_archetype
- {
- typedef int process_id_type;
- };
- void wait(process_group_archetype&);
- void synchronize(process_group_archetype&);
- int process_id(const process_group_archetype&);
- int num_processes(const process_group_archetype&);
- template<typename T> void send(process_group_archetype&, int, int, const T&);
- template<typename T>
- process_group_archetype::process_id_type
- receive(const process_group_archetype& pg,
- process_group_archetype::process_id_type source, int tag, T& value);
- template<typename T>
- std::pair<process_group_archetype::process_id_type, std::size_t>
- receive(const process_group_archetype& pg, int tag, T values[], std::size_t n);
- template<typename T>
- std::pair<process_group_archetype::process_id_type, std::size_t>
- receive(const process_group_archetype& pg,
- process_group_archetype::process_id_type source, int tag, T values[],
- std::size_t n);
- } }
- namespace boost { namespace graph { namespace distributed {
- using boost::parallel::trigger_receive_context;
- using boost::parallel::trc_early_receive;
- using boost::parallel::trc_out_of_band;
- using boost::parallel::trc_irecv_out_of_band;
- using boost::parallel::trc_in_synchronization;
- using boost::parallel::trc_none;
- using boost::parallel::attach_distributed_object;
- } } }
- #endif // BOOST_PROPERTY_MAP_PARALLEL_PROCESS_GROUP_HPP
|