codex
Loading...
Searching...
No Matches
queue_cas.c File Reference
#include <stdatomic.h>
#include <stdbool.h>
#include <stddef.h>
Include dependency graph for queue_cas.c:

Classes

struct  queue
 

Macros

#define N   1024
 

Functions

int * advance (struct queue *q)
 
bool push (struct queue *q, int i)
 
bool pop (struct queue *q, int *i)
 
bool is_full (const struct queue *q)
 

Macro Definition Documentation

◆ N

#define N   1024

Function Documentation

◆ advance()

int * advance ( struct queue * q)
Here is the caller graph for this function:

◆ is_full()

bool is_full ( const struct queue * q)

◆ pop()

bool pop ( struct queue * q,
int * i )
Here is the call graph for this function:

◆ push()

bool push ( struct queue * q,
int i )
Here is the call graph for this function: