<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/src/thread.c, branch v5.2.0</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/src/thread.c?h=v5.2.0</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/src/thread.c?h=v5.2.0'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2025-03-17T08:41:34Z</updated>
<entry>
<title>修复 MMCSD 宏拼写错误+内核开启LOG_D编译问题</title>
<updated>2025-03-17T08:41:34Z</updated>
<author>
<name>yixinghua121</name>
<email>111113527+yixinghua121@users.noreply.github.com</email>
</author>
<published>2025-03-12T08:02:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=8fa0c8ed9a0c14224a898b96b5b36e002d7499ea'/>
<id>urn:sha1:8fa0c8ed9a0c14224a898b96b5b36e002d7499ea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>doxygen: add prefix for groups (#9991)</title>
<updated>2025-02-15T04:15:19Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2025-02-15T04:15:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=c40b79037ce8bb09ba95411ebee1b22631cf9027'/>
<id>urn:sha1:c40b79037ce8bb09ba95411ebee1b22631cf9027</id>
<content type='text'>
* doxygen: add prefix for groups

Add "group_" prefix to doxygen group names. This makes
it easier to grep with group name later.

This patch only modifies the groups defined in the pathes
of INPUT of documentation/Doxyfile:

INPUT = . \
        ../src \
        ../include \
        ../components/finsh \
        ../components/drivers/include/drivers \
        ../components/drivers/clk \
        ../components/dfs/dfs_v2/src \
        ../components/dfs/dfs_v2/include

Other groups are not touched.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

* ci: fixed error report when run file_check.py

Such as:
- "please delete extra space at the end of this line."
- "the RT-Thread error code should return negative value. e.g. return
  -RT_ERROR"

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

---------

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;</content>
</entry>
<entry>
<title>[kernel] change size_t to rt_size_t</title>
<updated>2024-12-19T00:31:38Z</updated>
<author>
<name>guozhanxin</name>
<email>guozhanxin@rt-thread.com</email>
</author>
<published>2024-12-17T15:13:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7fb9a0a3bb6f604ffac86c220bdb475f1b3e0ac2'/>
<id>urn:sha1:7fb9a0a3bb6f604ffac86c220bdb475f1b3e0ac2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[kernel][mutex] fix bug of thread exit without releasing mutex &amp; add error check log</title>
<updated>2024-09-11T22:03:43Z</updated>
<author>
<name>zms123456</name>
<email>85141075+zmshahaha@users.noreply.github.com</email>
</author>
<published>2024-09-11T22:03:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=08221b54d0077b09fabb18dca421795301fa29ae'/>
<id>urn:sha1:08221b54d0077b09fabb18dca421795301fa29ae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: add memset zero for rt_thread_init</title>
<updated>2024-08-27T04:48:06Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-08-26T03:02:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=cbf6b641c23c78b6f82dfb51fecebd0f95a60896'/>
<id>urn:sha1:cbf6b641c23c78b6f82dfb51fecebd0f95a60896</id>
<content type='text'>
`rt_object_allocate()` will clear memory after new rt_thread allocate in
`rt_thread_create()`. However, in `rt_thread_init()` the same behavior
is missing, which corrupt the consistence of the API.

Changes:
- Added `memset()` zero for `rt_thread_init()` in the entry

Signed-off-by: Shell &lt;smokewood@qq.com&gt;
</content>
</entry>
<entry>
<title>[src][thread]fix rt_thread_resume return value error (#9114)</title>
<updated>2024-06-29T03:27:39Z</updated>
<author>
<name>zms123456</name>
<email>85141075+zmshahaha@users.noreply.github.com</email>
</author>
<published>2024-06-29T03:27:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=c018a3e3fd701402a4b83da614e79ea5ba66514d'/>
<id>urn:sha1:c018a3e3fd701402a4b83da614e79ea5ba66514d</id>
<content type='text'>
fix rt_thread_resume return value error</content>
</entry>
<entry>
<title>[arm64] add hw thread self (#8942)</title>
<updated>2024-05-28T06:27:55Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-05-28T06:27:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f17f994f8c85a0ca58d42c81a14f1134af6ada91'/>
<id>urn:sha1:f17f994f8c85a0ca58d42c81a14f1134af6ada91</id>
<content type='text'>
* [libcpu] arm64: Add hardware thread_self support

This patch introduces hardware-based thread self-identification
for the AArch64 architecture. It optimizes thread management by
using hardware registers to store and access the current thread's
pointer, reducing overhead and improving overall performance.

Changes include:
- Added `ARCH_USING_HW_THREAD_SELF` configuration option.
- Modified `rtdef.h`, `rtsched.h` to conditionally include
  `critical_switch_flag` based on the new config.
- Updated context management in `context_gcc.S`, `cpuport.h`
  to support hardware-based thread self.
- Enhanced `scheduler_mp.c` and `thread.c` to leverage the new
  hardware thread self feature.

These modifications ensure better scheduling and thread handling,
particularly in multi-core environments, by minimizing the
software overhead associated with thread management.

Signed-off-by: Shell &lt;smokewood@qq.com&gt;

* fixup: address suggestion

* fixup: rt_current_thread as global

* scheduler: add cpu object for UP scheduler

Also, maintain the rt_current_thread in cpu object on UP scheduler.

---------

Signed-off-by: Shell &lt;smokewood@qq.com&gt;</content>
</entry>
<entry>
<title>[libcpu/arm64] add C11 atomic ticket spinlock (#8882)</title>
<updated>2024-05-16T07:45:12Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-05-16T07:45:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=e25fc8b5118fba87acd5bc677641926a913bb3a5'/>
<id>urn:sha1:e25fc8b5118fba87acd5bc677641926a913bb3a5</id>
<content type='text'>
* [libcpu/arm64] add C11 atomic ticket spinlock

Replace the former implementation of flag-based spinlock which is unfair

Besides, C11 atomic implementation is more readable (it's C anyway),
and maintainable. Cause toolchain can use their builtin optimization and
tune for different micro-architectures. For example armv8.5 introduces a
better instruction. The compiler can help with that when it knows your
target platform in support of it.

Signed-off-by: Shell &lt;smokewood@qq.com&gt;

* fixup: RT_CPUS_NR

---------

Signed-off-by: Shell &lt;smokewood@qq.com&gt;</content>
</entry>
<entry>
<title>[smart] fixup arm64 aspace switch (#8925)</title>
<updated>2024-05-10T01:17:19Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-05-10T01:17:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=017b2a5a4461f349958e4b7c629679df3b1f9d7f'/>
<id>urn:sha1:017b2a5a4461f349958e4b7c629679df3b1f9d7f</id>
<content type='text'>
* [smart] fixup arm64 aspace switch

Signed-off-by: Shell &lt;smokewood@qq.com&gt;

* fixup: arm add arch_kernel_mmu_table_get

---------

Signed-off-by: Shell &lt;smokewood@qq.com&gt;</content>
</entry>
<entry>
<title>[kernel] add rt_thread_close()</title>
<updated>2024-05-01T04:49:09Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-05-01T04:49:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=2c9b7c10b9ff6b4509945376bb4e25dd18c1ce25'/>
<id>urn:sha1:2c9b7c10b9ff6b4509945376bb4e25dd18c1ce25</id>
<content type='text'>
* [thread] Add rt_thread_close()

This patch introduces a new function `rt_thread_close()` to enhances the
usability and maintainability by providing a dedicated mechanism for
closing threads.

- A new function `rt_thread_close()` is added to the API, providing a
  standardized approach for closing threads.
- The `rt_thread_close()` function removes a thread from the thread
  queue, updates its status to indicate closure, and performs the thread
  timer detaching which is a embedded timer in thread object.
- Additionally, the `rt_thread_detach()` function is modified to utilize
  `rt_thread_close()` internally, streamlining the thread detachment
  process.

Signed-off-by: Shell &lt;smokewood@qq.com&gt;</content>
</entry>
</feed>
