diff options
| author | Bernard Xiong <[email protected]> | 2019-05-20 20:33:07 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-20 20:33:07 +0800 |
| commit | b2ae7d72f923e1638f72d8eba5c2131389b741b0 (patch) | |
| tree | ab526e2e216f5f656b9c6a53221382d07c7bac2e /components/cplusplus/Thread.h | |
| parent | d778c9df25cbbd8e202a0133453e4c8b8e179eff (diff) | |
| parent | 35eff9a85dd1e922f98d36deed84bdfb3c8319f7 (diff) | |
Merge pull request #2703 from armink/lts-v3.1.x
Lts v3.1.x
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"); |
