EM-ODP  3.7.0
Event Machine on ODP
em_notif_t Struct Reference

#include <event_machine_types.h>

Data Fields

em_event_t event
 
em_queue_t queue
 
em_event_group_t egroup
 

Detailed Description

Notification

A notification structure allows the user to define a notification event and a destination queue with an optional event group. EM will notify the user by sending the event into the given queue.

The egroup-field defines an optional event group for this notification. The used event group has to exist and be initialized. Use value EM_EVENT_GROUP_UNDEF for normal operation (API 1.0 functionality), i.e. notification is not sent to a group. egroup should not be the originating group, i.e. should not be sent back to the group.

Attention
API 1.0 code using notifications may need to be modified as the new field need to be initialized. Value EM_EVENT_GROUP_UNDEF is the correct value to use for non-group notification but value 0 is an alias, e.g. it is safe to initialize the structure with memset(0,..).
Examples
event_group.c, event_group_abort.c, event_group_assign_end.c, event_group_chaining.c, fractal.c, queue_group.c, and queue_groups.c.

Definition at line 268 of file event_machine_types.h.

Field Documentation

◆ egroup

em_event_group_t em_notif_t::egroup

◆ event

em_event_t em_notif_t::event

◆ queue

em_queue_t em_notif_t::queue

The documentation for this struct was generated from the following file: