diff options
| author | Bernard Xiong <[email protected]> | 2019-04-03 22:47:56 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-03 22:47:56 +0800 |
| commit | 6b9c2f7b29a350b556e4d3a05b74436ce99490f1 (patch) | |
| tree | 56e75692fff5824d3ad59092145ca5bbf31d5464 /components/cplusplus/Thread.h | |
| parent | 583f8c307329d09b236b2aa11c7a9b13a88d4654 (diff) | |
| parent | ae41b850c4f16e60e8d1eb53f6e8b60e5708b91e (diff) | |
Merge pull request #2538 from enkiller/cplusplus
[components][cplusplus] 格式化代码
Diffstat (limited to 'components/cplusplus/Thread.h')
| -rw-r--r-- | components/cplusplus/Thread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/cplusplus/Thread.h b/components/cplusplus/Thread.h index 9b6cf30884..71ee50e1f9 100644 --- a/components/cplusplus/Thread.h +++ b/components/cplusplus/Thread.h @@ -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"); |
