ET System  16.4
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
et_station_t Struct Reference

Structure defining a station. More...

#include <et_private.h>

Data Fields

et_stat_id num
 Unique id # of station, 0 for first station (GrandCentral), = 1 for next station in mapped memory, etc. More...
 
int conductor
 Flag to kill conductor thread: when station deleted ET_THREAD_KILL else ET_THREAD_KEEP. More...
 
et_stat_id next
 Integer specifying next active or idle station in station chain, (not storing this as a pointer makes for an awkward linked list, but it survives mapping the shared memory to a different spot), and for last station this is -1. More...
 
et_stat_id prev
 Previous active or idle station in station chain and for first station this is -1. More...
 
et_stat_id nextparallel
 If this station is in a group of parallel stations, this is a "pointer" (actually and index) to the next parallel station and for last station this is -1. More...
 
et_stat_id prevparallel
 If this station is in a group of parallel stations, this is a "pointer" (actually an index) to the previous parallel station and for first station this is -1. More...
 
int waslast
 Flag = 1 if this station was last one to receive an event when using the round-robin selection method for a parallel group of stations (else = 0). More...
 
char name [ET_STATNAME_LENGTH]
 Unique station name. More...
 
pthread_mutex_t mutex
 Pthread mutex used for keeping the linked list of used stations in order for event transfers. More...
 
struct et_fix fix
 Info to repair station's lists after user crash. More...
 
et_stat_data data
 Current state of station. More...
 
et_stat_config config
 Station configuration. More...
 
et_list list_in
 Input list - a linked list containing events to read. More...
 
et_list list_out
 Output list - a linked list containing events to be written. More...
 

Detailed Description

Structure defining a station.

Field Documentation

int et_station_t::conductor

Flag to kill conductor thread: when station deleted ET_THREAD_KILL else ET_THREAD_KEEP.

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

struct et_fix et_station_t::fix

Info to repair station's lists after user crash.

et_list et_station_t::list_in
et_list et_station_t::list_out

Output list - a linked list containing events to be written.

Referenced by et_station_create_at(), et_station_getoutputcount(), et_station_remove(), and et_system_close().

pthread_mutex_t et_station_t::mutex

Pthread mutex used for keeping the linked list of used stations in order for event transfers.

et_stat_id et_station_t::next

Integer specifying next active or idle station in station chain, (not storing this as a pointer makes for an awkward linked list, but it survives mapping the shared memory to a different spot), and for last station this is -1.

et_stat_id et_station_t::nextparallel

If this station is in a group of parallel stations, this is a "pointer" (actually and index) to the next parallel station and for last station this is -1.

et_stat_id et_station_t::num

Unique id # of station, 0 for first station (GrandCentral), = 1 for next station in mapped memory, etc.

Referenced by et_station_create_at().

et_stat_id et_station_t::prev

Previous active or idle station in station chain and for first station this is -1.

et_stat_id et_station_t::prevparallel

If this station is in a group of parallel stations, this is a "pointer" (actually an index) to the previous parallel station and for first station this is -1.

int et_station_t::waslast

Flag = 1 if this station was last one to receive an event when using the round-robin selection method for a parallel group of stations (else = 0).


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