tsung-wei-huang / DtCraft

A High-performance Cluster Computing Engine
https://tsung-wei-huang.github.io/DtCraft/
MIT License
143 stars 25 forks source link

Support for Vertex Program #4

Open tsung-wei-huang opened 6 years ago

tsung-wei-huang commented 6 years ago

The vertex will support running external program (exec) in the release 0.2.2. Example usage is like :

G.vertex().on([](dtc::Vertex& v) { std::cout << "ready for ls\n"; }).program("/bin/ls / -al");

The external program will have DTC_BRIDGES in its environment variable to store the file descriptor mapping for its input/output stream connections with other vertices or so.