MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / arm_tpl_cv

Method arm_tpl_cv

components/libc/cplusplus/cpp11/armclang/condvar.cpp:17–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <stdatomic.h>
16
17arm_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
37arm_tpl_cv::~arm_tpl_cv()
38{

Callers

nothing calls this directly

Calls 3

rt_sem_createFunction · 0.85
rt_sem_deleteFunction · 0.85
rt_mutex_createFunction · 0.85

Tested by

no test coverage detected