mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-20 13:55:26 +08:00
[components][cplusplus] 格式化代码
This commit is contained in:
@@ -20,7 +20,7 @@ namespace rtthread
|
||||
class Thread
|
||||
{
|
||||
public:
|
||||
typedef void (*thread_func_t) (void *param);
|
||||
typedef void (*thread_func_t)(void *param);
|
||||
|
||||
/** Allocate a new thread without starting execution
|
||||
@param priority initial priority of the thread function. (default: osPriorityNormal).
|
||||
@@ -28,14 +28,14 @@ public:
|
||||
@param stack_pointer pointer to the stack area to be used by this thread (default: NULL).
|
||||
*/
|
||||
Thread(rt_uint32_t stack_size = 2048,
|
||||
rt_uint8_t priority = (RT_THREAD_PRIORITY_MAX * 2)/3,
|
||||
rt_uint8_t priority = (RT_THREAD_PRIORITY_MAX * 2) / 3,
|
||||
rt_uint32_t tick = 20,
|
||||
const char *name = "th");
|
||||
|
||||
Thread(void (*entry)(void *p),
|
||||
void *p = RT_NULL,
|
||||
rt_uint32_t stack_size = 2048,
|
||||
rt_uint8_t priority = (RT_THREAD_PRIORITY_MAX * 2)/3,
|
||||
rt_uint8_t priority = (RT_THREAD_PRIORITY_MAX * 2) / 3,
|
||||
rt_uint32_t tick = 20,
|
||||
const char *name = "th");
|
||||
|
||||
|
Reference in New Issue
Block a user