| Overview Tutorial API reference Examples Build Download | ZmqMessage 0.1 - 21 Oct 2011 |
#include "pthread.h"#include "stdint.h"#include <vector>#include "ZmqMessage.hpp"Classes | |
| struct | async_task |
Typedefs | |
| typedef std::vector< async_task > | TaskVec |
Functions | |
| zmq::context_t | ctx (1) |
| void | task_step (async_task &task) |
| template<typename QueueInserter> | |
| void | run_tasks (TaskVec &tasks, zmq::socket_t &s_res, QueueInserter q) |
| void * | async_task_processor (void *) |
| int | main (int, char **) |
Variables | |
| const char * | req_endpoint = "inproc://req_ep" |
| const char * | res_endpoint = "inproc://res_ep" |
| const char * | stop_endpoint = "inproc://stop" |
| const char * | to_worker_fields [] = {"message_type", "task_identifier"} |
| const char * | from_worker_fields [] = {"message_type", "task_identifier"} |
| uint64_t | message_queue_limit = 5 |
| int | max_task_steps = 10 |
| typedef std::vector<async_task> TaskVec |
| void* async_task_processor | ( | void * | ) |
| zmq::context_t ctx | ( | 1 | ) |
| int main | ( | int | , | |
| char ** | ||||
| ) |
| void run_tasks | ( | TaskVec & | tasks, | |
| zmq::socket_t & | s_res, | |||
| QueueInserter | q | |||
| ) |
| void task_step | ( | async_task & | task | ) |
| const char* from_worker_fields[] = {"message_type", "task_identifier"} |
| int max_task_steps = 10 |
| uint64_t message_queue_limit = 5 |
| const char* req_endpoint = "inproc://req_ep" |
| const char* res_endpoint = "inproc://res_ep" |
| const char* stop_endpoint = "inproc://stop" |
| const char* to_worker_fields[] = {"message_type", "task_identifier"} |