socan 1.2.1
Linux SocketCAN higher level library
Loading...
Searching...
No Matches
squeue Struct Reference

queue for CAN objects. More...

Data Fields

int elements
 
int head
 
int tail
 
sq_elmdata
 
pthread_mutex_t qmutex
 
sem_t qsem
 
bool empty
 

Detailed Description

queue for CAN objects.

This queue stores sq_elm objects, which consist of a CAN object id (aka "cob") and a CAN port. The queue is thread safe. The read function blocks when the queue is empty.

Definition at line 157 of file socan.c.

Field Documentation

◆ data

sq_elm* squeue::data

queue data

Definition at line 161 of file socan.c.

◆ elements

int squeue::elements

number of elements allocated

Definition at line 159 of file socan.c.

◆ empty

bool squeue::empty

empty flag

Definition at line 164 of file socan.c.

◆ head

int squeue::head

Definition at line 160 of file socan.c.

◆ qmutex

pthread_mutex_t squeue::qmutex

mutex semaphore

Definition at line 162 of file socan.c.

◆ qsem

sem_t squeue::qsem

semaphore for blocking read

Definition at line 163 of file socan.c.

◆ tail

int squeue::tail

queue head and tail index

Definition at line 160 of file socan.c.


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