6 #define MSG_SIZE_T uint32_t
#define MSG_SIZE_T
Definition: spsc.h:6
size_t spsc_size(const spsc_ring *ring)
void spsc_destroy(spsc_ring *ring)
int spsc_create_sub(spsc_ring *ring, const char *pathname, const size_t size)
MSG_SIZE_T spsc_write(spsc_ring *ring, const void *src, const MSG_SIZE_T n)
int spsc_create_pub(spsc_ring *ring, const char *pathname, const size_t size)
size_t spsc_capacity(const spsc_ring *ring)
size_t spsc_read(spsc_ring *ring, void *dest, const size_t n)
size_t _rpos
Definition: spsc.h:21
size_t _size
Definition: spsc.h:18
char __pad2[64]
Definition: spsc.h:25
size_t _wpos
Definition: spsc.h:24
char __pad0[64]
Definition: spsc.h:19
int _version
Definition: spsc.h:17
char _buf[]
Definition: spsc.h:27
char __pad1[64]
Definition: spsc.h:22
char _header[2]
Definition: spsc.h:16
int mode
Definition: spsc.h:42
int flock_fd
Definition: spsc.h:46
spsc_ring_data * _data
Definition: spsc.h:38