| 1234567891011121314151617 |
- #ifndef __CONTROLLER_H__
- #define __CONTROLLER_H__
- #include <vector>
- #include <utility>
- typedef std::pair<const char *, unsigned int> Workentry;
- typedef std::vector<Workentry> Worklist;
- int controller_parse_args(int argc, char **argv, unsigned short &bindport,
- Worklist &worklist, unsigned short &total_workers, unsigned short &total_nodes,
- unsigned short &GB_mem_per_node);
- int controller_main(const Worklist &worklist, unsigned short bindport,
- void (*boundcb)(const char *boundaddr, unsigned short boundport));
- #endif
|