ET System  16.5
All Data Structures Files Functions Variables Typedefs Macros Modules Pages
et_proc Struct Reference

Structure containing local process info. More...

#include <et_private.h>

Data Fields

et_proc_id num
 Unique index # of this process. More...
 
et_att_id att [ET_ATTACHMENTS_MAX]
 Array in which an element (indexed by the id# of an attachment owned by this process) gives the id# of the attachment and -1 otherwise. More...
 
uint64_t time
 Time ET system opened, used to prevent race conditions caused by rapid open and close cycles. More...
 
int nattachments
 Number of attachments to an ET system in this process. More...
 
int status
 ET_PROC_OPEN if open or connected to ET system, or ET_PROC_CLOSED if closed/unconnected. More...
 
int et_status
 ET_PROC_ETDEAD if ET system is dead, or ET_PROC_ETOK if ET system is OK. More...
 
unsigned int heartbeat
 Heartbeat periodically incremented to tell ET system it's alive. More...
 
pid_t pid
 Unix process id. More...
 
pthread_t hbeat_thd_id
 Heartbeat pthread id . More...
 
pthread_t hmon_thd_id
 Heart monitor pthread id. More...
 

Detailed Description

Structure containing local process info.

Field Documentation

◆ att

Array in which an element (indexed by the id# of an attachment owned by this process) gives the id# of the attachment and -1 otherwise.

Referenced by et_station_attach(), and et_station_detach().

◆ et_status

int et_proc::et_status

ET_PROC_ETDEAD if ET system is dead, or ET_PROC_ETOK if ET system is OK.

◆ hbeat_thd_id

pthread_t et_proc::hbeat_thd_id

Heartbeat pthread id .

◆ heartbeat

unsigned int et_proc::heartbeat

Heartbeat periodically incremented to tell ET system it's alive.

◆ hmon_thd_id

pthread_t et_proc::hmon_thd_id

Heart monitor pthread id.

◆ nattachments

int et_proc::nattachments

Number of attachments to an ET system in this process.

Referenced by et_station_attach(), and et_station_detach().

◆ num

et_proc_id et_proc::num

Unique index # of this process.

◆ pid

pid_t et_proc::pid

Unix process id.

◆ status

int et_proc::status

ET_PROC_OPEN if open or connected to ET system, or ET_PROC_CLOSED if closed/unconnected.

◆ time

uint64_t et_proc::time

Time ET system opened, used to prevent race conditions caused by rapid open and close cycles.


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