Arax -8d09c51940345c86062e8ef2427c705ae66e5926
A Runtime Framework for Decoupling Applications from Heterogeneous Accelerators
Loading...
Searching...
No Matches
mutex/async.h
Go to the documentation of this file.
1#ifndef ASYNC_HEADER
2#define ASYNC_HEADER
3#include "core/arax_object.h"
4#include "pthread.h"
5#include <semaphore.h>
6
7struct async_meta_s
8{
9 // This padp is necessary as empty struct have sizeof == 1 in C++, but 0 in C
10 #ifndef __cplusplus
11 char padd;
12 #endif
13};
14
15typedef struct
16{
17 pthread_mutex_t mutex;
18 pthread_mutexattr_t attr;
19}
21
22typedef struct
23{
24 sem_t sem;
26
27typedef struct
28{
30 pthread_cond_t condition;
31 pthread_condattr_t c_attr;
33
34#include "async_api.h"
35#endif // ifndef ASYNC_HEADER
pthread_cond_t condition
Definition mutex/async.h:30
pthread_condattr_t c_attr
Definition mutex/async.h:31