diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-01-23 11:16:40 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-01-23 11:16:40 -0500 |
commit | d56b86e42b72abb68ba74bf540ddc259f6b20f84 (patch) | |
tree | a9d78e760bcf4254d883c6242d384f9d1261098f /include/internal.h | |
parent | 23701920e39a903883f19c2749383bba2a746405 (diff) |
reorganize liblitmus to be more modular
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 | ||