77 std::list<CEvent> event_list;
145 std::list<CEvent>::iterator
search_event(
const std::string& event_id);
223 void set_event(
const std::string& event_id);
331 int wait_first(std::list<std::string> events,
int timeout = -1);
361 void wait_all(std::list<std::string> events,
int timeout = -1);
void create_event(const std::string &event_id)
Function to create a new event.
int get_num_activations(const std::string &event_id)
Function to get the number of activations of a single event.
void wait_all(std::list< std::string > events, int timeout=-1)
Function to wait for all the events is a set.
bool event_is_set(const std::string &event_id)
Function to query if the event is active or not.
CEventServer & operator=(const CEventServer &object)
assign operator overloading
Implementation of a mutual exclusion mechanism.
std::list< CEvent >::iterator search_event(const std::string &event_id)
Function to search for an specific event.
int get_num_events(void)
function to get the number of event
int wait_first(std::list< std::string > events, int timeout=-1)
Function to wait for the first event in a set.
void delete_event(const std::string &event_id)
Function to delete an existing event.
void set_event(const std::string &event_id)
Function to activate an event.
CEventServer()
Default constructor.
static CEventServer * instance(void)
Function to get a reference to the unique instance.
void reset_event(const std::string &event_id)
Function to deactivate an event.