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

Method Thread

components/libc/cplusplus/os/cxx_Thread.cpp:14–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace rtthread;
13
14Thread::Thread(rt_uint32_t stack_size,
15 rt_uint8_t priority,
16 rt_uint32_t tick,
17 const char *name)
18 : _entry(RT_NULL), _param(RT_NULL), started(false)
19{
20 rt_event_init(&_event, name, 0);
21
22 _thread = rt_thread_create(name,
23 (thread_func_t)func,
24 this,
25 stack_size,
26 priority,
27 tick);
28}
29
30Thread::Thread(void (*entry)(void *p),
31 void *p,

Callers 2

MDK5ProjectFunction · 0.80
tcp_server.pyFile · 0.80

Calls 2

rt_event_initFunction · 0.85
rt_thread_createFunction · 0.85

Tested by

no test coverage detected