Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ rt_err_t rt_thread_init(struct rt_thread *thread,
/* parameter check */
RT_ASSERT(thread != RT_NULL);
RT_ASSERT(stack_start != RT_NULL);
RT_ASSERT(tick != 0);

/* initialize thread object */
rt_object_init((rt_object_t)thread, RT_Object_Class_Thread, name);
Expand Down Expand Up @@ -512,6 +513,9 @@ rt_thread_t rt_thread_create(const char *name,
rt_uint8_t priority,
rt_uint32_t tick)
{
/* parameter check */
RT_ASSERT(tick != 0);

struct rt_thread *thread;
void *stack_start;

Expand Down