Microchip® Advanced Software Framework

pt-sem.h File Reference

Counting semaphores implemented on protothreads.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "sys/pt.h"

Data Structures

struct  pt_sem
 

Macros

#define PT_SEM_INIT(s, c)
 Initialize a semaphore. More...
 
#define PT_SEM_SIGNAL(pt, s)
 Signal a semaphore. More...
 
#define PT_SEM_WAIT(pt, s)
 Wait for a semaphore. More...