et_system_t Struct Reference

Structure containing all ET system information. More...

#include <et_private.h>

Data Fields

int version
 Major version number of this ET software release.
int nselects
 Number of selection ints per station (also control ints per event).
int bitInfo
 Least significant bit = 1 if ET system created by 64 bit executable, and next bit = 1 if ET system is being told to kill itself.
int asthread
 ET_THREAD_KILL if killing add-station thread, else ET_THREAD_KEEP.
unsigned int heartbeat
 Heartbeat which periodically increments to indicate ET is alive.
int hz
 System clock rate in Hz.
int nstations
 Current number of stations idle or active.
int ntemps
 Current number of temp events.
int nprocesses
 Current number of local processes which have opened system.
int nattachments
 Current number of attachments to stations in system.
int port
 TCP server port.
et_stat_id stat_head
 Index to head of linked list of used stations (not storing this as a pointer makes for an awkward linked list, but it survives mapping the shared memory to a different spot).
et_stat_id stat_tail
 Index to tail of linked list of used stations (not storing this as a pointer makes for an awkward linked list, but it survives mapping the shared memory to a different spot).
pid_t mainpid
 Unix pid of ET system.
void * pmap
 Pointer to mapped mem in ET system's process (used for user-called routines to read/write pointers correctly from shared mem).
pthread_mutex_t mutex
 Pthread mutex to protect system data during changes.
pthread_mutex_t stat_mutex
 Pthread mutex to protect station data during changes.
pthread_mutex_t statadd_mutex
 Pthread mutex used to add stations one at a time.
pthread_cond_t statadd
 Pthread condition variable used to add new stations.
pthread_cond_t statdone
 Pthread condition variable used to signal end of station creation.
pthread_t tid_hb
 System heartbeat thread id.
pthread_t tid_hm
 System heartmonitor thread id.
pthread_t tid_as
 System add station thread id.
pthread_t tid_srv
 ET TCP server thread id.
pthread_t tid_mul
 Id of thread spawning broad/multicast listening threads.
char host [ET_MAXHOSTNAMELEN]
 Host of the ET system.
struct et_proc proc [ET_PROCESSES_MAX]
 Array of info on processes.
struct et_attach attach [ET_ATTACHMENTS_MAX]
 Array of info on attachments.
et_sys_config config
 Configuration parameters used to create ET system.

Detailed Description

Structure containing all ET system information.


Field Documentation

ET_THREAD_KILL if killing add-station thread, else ET_THREAD_KEEP.

Referenced by et_system_close().

struct et_attach et_system_t::attach[ET_ATTACHMENTS_MAX] [read]

Least significant bit = 1 if ET system created by 64 bit executable, and next bit = 1 if ET system is being told to kill itself.

unsigned int et_system_t::heartbeat

Heartbeat which periodically increments to indicate ET is alive.

Referenced by et_system_getheartbeat(), and et_system_start().

char et_system_t::host[ET_MAXHOSTNAMELEN]

Host of the ET system.

System clock rate in Hz.

Referenced by et_event_new(), et_events_new(), et_events_new_group(), and et_system_start().

Unix pid of ET system.

Referenced by et_system_getpid().

pthread_mutex_t et_system_t::mutex

Pthread mutex to protect system data during changes.

Current number of attachments to stations in system.

Referenced by et_station_attach(), et_station_detach(), and et_system_getattachments().

Current number of local processes which have opened system.

Referenced by et_system_getprocs().

Number of selection ints per station (also control ints per event).

Current number of stations idle or active.

Referenced by et_station_create_at(), et_station_remove(), and et_system_getstations().

Pointer to mapped mem in ET system's process (used for user-called routines to read/write pointers correctly from shared mem).

Referenced by et_system_start().

TCP server port.

struct et_proc et_system_t::proc[ET_PROCESSES_MAX] [read]

Array of info on processes.

Referenced by et_station_attach(), and et_station_detach().

Index to head of linked list of used stations (not storing this as a pointer makes for an awkward linked list, but it survives mapping the shared memory to a different spot).

pthread_mutex_t et_system_t::stat_mutex

Pthread mutex to protect station data during changes.

Index to tail of linked list of used stations (not storing this as a pointer makes for an awkward linked list, but it survives mapping the shared memory to a different spot).

pthread_cond_t et_system_t::statadd

Pthread condition variable used to add new stations.

Referenced by et_station_create_at(), and et_system_close().

pthread_mutex_t et_system_t::statadd_mutex

Pthread mutex used to add stations one at a time.

Referenced by et_station_create_at().

pthread_cond_t et_system_t::statdone

Pthread condition variable used to signal end of station creation.

Referenced by et_station_create_at().

System add station thread id.

System heartbeat thread id.

Referenced by et_system_close().

System heartmonitor thread id.

Referenced by et_system_close(), and et_system_start().

Id of thread spawning broad/multicast listening threads.

ET TCP server thread id.

Referenced by et_system_close().

Major version number of this ET software release.


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

Generated on 30 Jul 2015 for ET System by  doxygen 1.6.1