Arax
-8d09c51940345c86062e8ef2427c705ae66e5926
A Runtime Framework for Decoupling Applications from Heterogeneous Accelerators
Loading...
Searching...
No Matches
spin/async.h
Go to the documentation of this file.
1
#ifndef ASYNC_HEADER
2
#define ASYNC_HEADER
3
#include "
core/arax_object.h
"
4
5
struct
async_meta_s
6
{
7
#ifndef __cplusplus
8
char
padd
;
9
#endif
10
};
11
12
typedef
struct
13
{
14
volatile
size_t
completed;
15
}
16
async_completion_s
;
17
18
typedef
struct
19
{
20
volatile
size_t
value;
21
}
22
async_semaphore_s
;
23
24
typedef
struct
25
{
26
async_completion_s
mutex;
27
async_semaphore_s
semaphore;
28
}
async_condition_s
;
29
30
#include "
async_api.h
"
31
#endif
// ifndef ASYNC_HEADER
arax_object.h
async_api.h
async_meta_s
Definition
ivshmem/async.h:11
async_meta_s::padd
char padd
Definition
mutex/async.h:11
async_completion_s
Definition
ivshmem/async.h:21
async_semaphore_s
Definition
ivshmem/async.h:31
async_condition_s
Definition
ivshmem/async.h:40
src
async
spin
async.h
Generated by
1.13.2