Go to the source code of this file.
Data Structures | |
struct | GQUEUECONTROL |
Macros | |
#define | TRUE 1 |
#define | FALSE 0 |
#define | MAXSIZE_QUEUE_READ_GATES 5 |
#define | QUEUE_READ_GATE_0 0 |
#define | QUEUE_READ_GATE_1 1 |
#define | QUEUE_READ_GATE_2 2 |
#define | QUEUE_READ_GATE_3 3 |
#define | QUEUE_READ_GATE_4 4 |
#define | GQUEUE_RTAI_SUPPORT 0 |
Typedefs | |
typedef struct GQUEUECONTROL * | PGQUEUECONTROL |
Functions | |
int | gQUEUE_Init (PGQUEUECONTROL pQueueControl, int Size, int NReaders) |
int | gQUEUE_GetReadIndex (PGQUEUECONTROL pQueueControl, int NReader, int *Index, int IndexHorizon) |
int | gQUEUE_GetWriteIndex (PGQUEUECONTROL pQueueControl, int *Index, int IndexHorizon) |
int | gQUEUE_RequestReadIndex (PGQUEUECONTROL pQueueControl, int NReader, int *Index) |
int | gQUEUE_RequestWriteIndex (PGQUEUECONTROL pQueueControl, int *Index) |
int | gQUEUE_RequestLastReadIndex (PGQUEUECONTROL pQueueControl, int NReader, int *Index) |
int | gQUEUE_UnwrapWriteIndex (PGQUEUECONTROL pQueueControl) |
int | gQUEUE_UnwrapReadIndex (PGQUEUECONTROL pQueueControl, int NReader) |
int | gQUEUE_GetNumberOfUnreadData (PGQUEUECONTROL pQueueControl, int NReader, int *Index) |
#define MAXSIZE_QUEUE_READ_GATES 5 |
Definition at line 22 of file gqueue.h.
Referenced by gQUEUE_Init().
typedef struct GQUEUECONTROL * PGQUEUECONTROL |
int gQUEUE_GetNumberOfUnreadData | ( | PGQUEUECONTROL | pQueueControl, |
int | NReader, | ||
int * | Index | ||
) |
Definition at line 314 of file gqueue.c.
References FALSE, GQUEUECONTROL::NReaders, GQUEUECONTROL::ReadIndex, GQUEUECONTROL::Size, TRUE, and GQUEUECONTROL::WriteIndex.
Referenced by gDataLogger_IPCUpdate(), and gDataLogger_MatfileUpdate().
int gQUEUE_GetReadIndex | ( | PGQUEUECONTROL | pQueueControl, |
int | NReader, | ||
int * | Index, | ||
int | IndexHorizon | ||
) |
Definition at line 166 of file gqueue.c.
References BEGIN_ATOMIC, END_ATOMIC, FALSE, GQUEUECONTROL::FlagStillNotWritten, gQUEUE_UnwrapReadIndex(), GQUEUECONTROL::NReaders, GQUEUECONTROL::ReadIndex, GQUEUECONTROL::Size, and TRUE.
int gQUEUE_GetWriteIndex | ( | PGQUEUECONTROL | pQueueControl, |
int * | Index, | ||
int | IndexHorizon | ||
) |
Definition at line 203 of file gqueue.c.
References BEGIN_ATOMIC, END_ATOMIC, FALSE, GQUEUECONTROL::FlagStillNotWritten, gQUEUE_UnwrapWriteIndex(), GQUEUECONTROL::Size, TRUE, and GQUEUECONTROL::WriteIndex.
int gQUEUE_Init | ( | PGQUEUECONTROL | pQueueControl, |
int | Size, | ||
int | NReaders | ||
) |
Definition at line 31 of file gqueue.c.
References FALSE, GQUEUECONTROL::FlagFull, GQUEUECONTROL::FlagStillNotRead, GQUEUECONTROL::FlagStillNotWritten, MAXSIZE_QUEUE_READ_GATES, GQUEUECONTROL::NReaders, GQUEUECONTROL::ReadIndex, GQUEUECONTROL::Size, TRUE, and GQUEUECONTROL::WriteIndex.
Referenced by gDataLogger_DeclareVariable().
int gQUEUE_RequestLastReadIndex | ( | PGQUEUECONTROL | pQueueControl, |
int | NReader, | ||
int * | Index | ||
) |
Definition at line 67 of file gqueue.c.
References BEGIN_ATOMIC, END_ATOMIC, FALSE, GQUEUECONTROL::FlagFull, GQUEUECONTROL::FlagStillNotRead, GQUEUECONTROL::FlagStillNotWritten, gQUEUE_UnwrapReadIndex(), GQUEUECONTROL::NReaders, GQUEUECONTROL::ReadIndex, TRUE, and GQUEUECONTROL::WriteIndex.
int gQUEUE_RequestReadIndex | ( | PGQUEUECONTROL | pQueueControl, |
int | NReader, | ||
int * | Index | ||
) |
Definition at line 117 of file gqueue.c.
References BEGIN_ATOMIC, END_ATOMIC, FALSE, GQUEUECONTROL::FlagFull, GQUEUECONTROL::FlagStillNotRead, GQUEUECONTROL::FlagStillNotWritten, gQUEUE_UnwrapReadIndex(), GQUEUECONTROL::NReaders, GQUEUECONTROL::ReadIndex, TRUE, and GQUEUECONTROL::WriteIndex.
Referenced by gDataLogger_IPCUpdate(), and gDataLogger_MatfileUpdate().
int gQUEUE_RequestWriteIndex | ( | PGQUEUECONTROL | pQueueControl, |
int * | Index | ||
) |
Definition at line 233 of file gqueue.c.
References BEGIN_ATOMIC, END_ATOMIC, FALSE, GQUEUECONTROL::FlagFull, GQUEUECONTROL::FlagStillNotWritten, gQUEUE_UnwrapWriteIndex(), GQUEUECONTROL::NReaders, GQUEUECONTROL::ReadIndex, GQUEUECONTROL::Size, TRUE, and GQUEUECONTROL::WriteIndex.
Referenced by gDataLogger_InsertVariable().
int gQUEUE_UnwrapReadIndex | ( | PGQUEUECONTROL | pQueueControl, |
int | NReader | ||
) |
Definition at line 277 of file gqueue.c.
References FALSE, GQUEUECONTROL::NReaders, GQUEUECONTROL::ReadIndex, GQUEUECONTROL::Size, and TRUE.
Referenced by gQUEUE_GetReadIndex(), gQUEUE_RequestLastReadIndex(), and gQUEUE_RequestReadIndex().
int gQUEUE_UnwrapWriteIndex | ( | PGQUEUECONTROL | pQueueControl | ) |
Definition at line 297 of file gqueue.c.
References GQUEUECONTROL::Size, TRUE, and GQUEUECONTROL::WriteIndex.
Referenced by gQUEUE_GetWriteIndex(), and gQUEUE_RequestWriteIndex().