| 15 | #include <stdatomic.h> |
| 16 | |
| 17 | arm_tpl_cv::arm_tpl_cv() |
| 18 | { |
| 19 | s = rt_sem_create("semxs", 0, RT_IPC_FLAG_PRIO); |
| 20 | if (s == nullptr) |
| 21 | RT_ASSERT(0); |
| 22 | h = rt_sem_create("semxh", 0, RT_IPC_FLAG_PRIO); |
| 23 | if (h == nullptr) |
| 24 | { |
| 25 | rt_sem_delete(s); |
| 26 | RT_ASSERT(0); |
| 27 | } |
| 28 | x = rt_mutex_create("mutx", RT_IPC_FLAG_PRIO); |
| 29 | if (x == nullptr) |
| 30 | { |
| 31 | rt_sem_delete(s); |
| 32 | rt_sem_delete(h); |
| 33 | RT_ASSERT(0); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | arm_tpl_cv::~arm_tpl_cv() |
| 38 | { |
nothing calls this directly
no test coverage detected