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

Classes

struct  queue
 

Macros

#define N   1024
 

Functions

void init (struct queue *q)
 
void push (struct queue *q, int i)
 
void pop (struct queue *q, int *i)
 
bool is_full (struct queue *q)
 

Macro Definition Documentation

◆ N

#define N   1024

Function Documentation

◆ init()

void init ( struct queue * q)

◆ is_full()

bool is_full ( struct queue * q)

◆ pop()

void pop ( struct queue * q,
int * i )

◆ push()

void push ( struct queue * q,
int i )