Go to the source code of this file.
Macros | |
#define | BEGIN_ATOMIC() |
#define | END_ATOMIC() |
Functions | |
int | gQUEUE_Init (PGQUEUECONTROL pQueueControl, int Size, int NReaders) |
int | gQUEUE_RequestLastReadIndex (PGQUEUECONTROL pQueueControl, int NReader, int *Index) |
int | gQUEUE_RequestReadIndex (PGQUEUECONTROL pQueueControl, int NReader, int *Index) |
int | gQUEUE_GetReadIndex (PGQUEUECONTROL pQueueControl, int NReader, int *Index, int IndexHorizon) |
int | gQUEUE_GetWriteIndex (PGQUEUECONTROL pQueueControl, int *Index, int IndexHorizon) |
int | gQUEUE_RequestWriteIndex (PGQUEUECONTROL pQueueControl, int *Index) |
int | gQUEUE_UnwrapReadIndex (PGQUEUECONTROL pQueueControl, int NReader) |
int | gQUEUE_UnwrapWriteIndex (PGQUEUECONTROL pQueueControl) |
int | gQUEUE_GetNumberOfUnreadData (PGQUEUECONTROL pQueueControl, int NReader, int *Index) |
#define BEGIN_ATOMIC | ( | ) |
Definition at line 17 of file gqueue.c.
Referenced by gQUEUE_GetReadIndex(), gQUEUE_GetWriteIndex(), gQUEUE_RequestLastReadIndex(), gQUEUE_RequestReadIndex(), and gQUEUE_RequestWriteIndex().
#define END_ATOMIC | ( | ) |
Definition at line 18 of file gqueue.c.
Referenced by gQUEUE_GetReadIndex(), gQUEUE_GetWriteIndex(), gQUEUE_RequestLastReadIndex(), gQUEUE_RequestReadIndex(), and gQUEUE_RequestWriteIndex().
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().