We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b25817 commit 8c392f5Copy full SHA for 8c392f5
src/thread.c
@@ -343,6 +343,7 @@ rt_err_t rt_thread_init(struct rt_thread *thread,
343
/* parameter check */
344
RT_ASSERT(thread != RT_NULL);
345
RT_ASSERT(stack_start != RT_NULL);
346
+ RT_ASSERT(tick != 0);
347
348
/* initialize thread object */
349
rt_object_init((rt_object_t)thread, RT_Object_Class_Thread, name);
@@ -512,6 +513,9 @@ rt_thread_t rt_thread_create(const char *name,
512
513
rt_uint8_t priority,
514
rt_uint32_t tick)
515
{
516
+ /* parameter check */
517
518
+
519
struct rt_thread *thread;
520
void *stack_start;
521
0 commit comments