![]() |
Belle II Software
release-08-02-05
|
Internal metadata structure for RingBuffer. More...
#include <RingBuffer.h>
Public Attributes | |
| int | size |
| ring buffer size (integers), minus this header. | |
| int | remain |
| Unsure, always equal to size. | |
| int | wptr |
| Pointer for writing entries. | |
| int | prevwptr |
| Previous state of wptr (for error recovery). | |
| int | rptr |
| Pointer for reading entries. | |
| int | nbuf |
| Number of entries in ring buffer. | |
| int | semid |
| Semaphore ID. | |
| int | nattached |
| Number of RingBuffer instances currently attached to this buffer. | |
| int | nbusy |
| Number of attached reading processes currently processing events. | |
| int | __readbuf |
| Unused. | |
| int | errtype |
| Error state? 0: Normal, 1: buffer full and wptr>rptr, others are complicated. | |
| int | numAttachedTx |
| number of attached sending processes. More... | |
| int | ninsq |
| Count insq() calls for this buffer. | |
| int | nremq |
| Count remq() calls for this buffer. | |
Internal metadata structure for RingBuffer.
Placed on top of the shared memory.
Definition at line 21 of file RingBuffer.h.
| int numAttachedTx |
number of attached sending processes.
0: Processes reading from this buffer should terminate once it's empty. -1: attach pending (initial state)
Definition at line 33 of file RingBuffer.h.