PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
propgcc
propeller-elf
include
semaphore.h
1
#ifndef __SEMAPHORE_H__
2
#define __SEMAPHORE_H__
3
4
#include <
pthread.h
>
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
11
typedef
struct
sem_t
{
12
volatile
int
counter;
13
_pthread_queue_t queue;
14
}
sem_t
;
15
16
int
sem_init(
sem_t
*sem,
int
pshared,
unsigned
int
value);
17
int
sem_destroy(
sem_t
*sem);
18
int
sem_trywait(
sem_t
*sem);
19
int
sem_wait(
sem_t
*sem);
20
int
sem_post(
sem_t
*sem);
21
22
#ifdef __cplusplus
23
}
24
#endif
25
26
#endif
sem_t
Definition:
semaphore.h:11
pthread.h
Provides API for implementation of pthread functions.
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17