summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
authorxqyjlj <[email protected]>2024-01-05 17:03:55 +0800
committerGitHub <[email protected]>2024-01-05 17:03:55 +0800
commit6b6d39d716b21c9f4b72641a0ad3e44685e7bb19 (patch)
treedb6c36dd6f5b736d126a13a2f594ee0b3abfe567 /src/thread.c
parentdb2cfd335f65e4f3a35121d67c6da62bb23d2e60 (diff)
✨ feat: delete thread ref (#8456)
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.c b/src/thread.c
index 94180a712c..a2bc74bf6d 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -291,7 +291,7 @@ static rt_err_t _thread_init(struct rt_thread *thread,
#ifdef RT_USING_MODULE
thread->parent.module_id = 0;
#endif /* RT_USING_MODULE */
- rt_atomic_store(&thread->ref_count, 0);
+
rt_spin_lock_init(&thread->spinlock);
RT_OBJECT_HOOKLIST_CALL(rt_thread_inited, (thread));