|
static void * | wait_for_data (void *data) |
|
enum | role_t { SUBSCRIBER,
PUBLISHER
} |
|
| subscriber_manager (key_t shared_queue) |
|
| tentacle (key_t msg_key) |
|
bool | write (long type, std::string data) |
|
bool | write (std::pair< long, std::string > pair) |
|
static bool | register_cb (callback cb, std::string topic, uint size, subscriber_manager *sub) |
|
static long | getTempId (role_t role) |
|
static std::pair< long, std::string > | read (long type, bool block=true, bool under=false) |
|
static std::unordered_map< std::string, std::tuple< sem_id_t, shm_object *, generic_t * > > | topic_memory |
|
static std::unordered_map< std::string, octopOS_id_t > | topic_ids |
|
static std::unordered_map< std::string, std::vector< callback > > | registered_callbacks |
|
static std::mutex | topic_ids_lock |
|
static std::mutex | topic_memory_lock |
|
static std::mutex | registered_callbacks_lock |
|
static int | message_que |
|
static intptr_t * | shared_data = NULL |
|
template<typename T>
class subscriber< T >
subscriber is used to retrtieve the data published to a topic so it can be used in the client application. This class provides an easy interface for reading off a topic's data_queue. T is the type of data assosciated with the topic.