Skip to content

Instantly share code, notes, and snippets.

View trojanobelix's full-sized avatar

trojanobelix

  • 11:42 (UTC +01:00)
View GitHub Profile
/*
** queue-threadsafe.c
**
** A thread-safe (for 2 threads) implementation of a queue. Based on the
** implementation from the book Embedded Systems, by Jonathan W. Valvano,
** chapter 3, page 130.
*/
#include <stdlib.h>