diff options
Diffstat (limited to 'include/internal.h')
-rw-r--r-- | include/internal.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/internal.h b/include/internal.h new file mode 100644 index 0000000..25e1573 --- /dev/null +++ b/include/internal.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef INTERNAL_H | ||
2 | #define INTERNAL_H | ||
3 | |||
4 | /* low level operations, not intended for API use */ | ||
5 | |||
6 | /* prepare a real-time task */ | ||
7 | typedef int (*rt_setup_fn_t)(int pid, void* arg); | ||
8 | int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, | ||
9 | rt_setup_fn_t setup, void* setup_arg); | ||
10 | |||
11 | #define check(str) \ | ||
12 | if (ret == -1) { \ | ||
13 | perror(str); \ | ||
14 | fprintf(stderr, \ | ||
15 | "Warning: Could not initialize LITMUS^RT, " \ | ||
16 | "%s failed.\n", str \ | ||
17 | ); \ | ||
18 | } | ||
19 | |||
20 | |||
21 | #endif | ||