design_pattern_for_c  V 1.00
event_thread_msg_t Struct Reference

message struct definition More...

Collaboration diagram for event_thread_msg_t:

Public Types

enum  { EVE_THREAD_MSG_TYPE_ADD, EVE_THREAD_MSG_TYPE_UPDATE, EVE_THREAD_MSG_TYPE_DEL, EVE_THREAD_MSG_TYPE_STOP }
 

Data Fields

enum event_thread_msg_t:: { ... }  type
 
union {
   event_thread_msg_body_add_t   add
 when msg is update, body is subscribe More...
 
   event_thread_msg_body_del_t   del
 when msg is del, body is fd More...
 
data
 

Detailed Description

message struct definition

Definition at line 64 of file event_thread.c.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
EVE_THREAD_MSG_TYPE_ADD 
EVE_THREAD_MSG_TYPE_UPDATE 
EVE_THREAD_MSG_TYPE_DEL 
EVE_THREAD_MSG_TYPE_STOP 

Definition at line 65 of file event_thread.c.

Field Documentation

◆ add

when msg is update, body is subscribe

Definition at line 72 of file event_thread.c.

◆ data

union { ... } data

◆ del

when msg is del, body is fd

Definition at line 73 of file event_thread.c.

◆ type

enum { ... } type

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