Shell
2c9b7c10b9
[kernel] add rt_thread_close()
...
* [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 <smokewood@qq.com>
2024-05-01 00:49:09 -04:00
Troy
1d2fde8d73
Add comments for all functions in components/libc/posix/ipc/mqueue.c
2024-04-30 01:08:36 -04:00
Troy
946dd264ed
Add comments for all functions in components/libc/posix/io/termios/termios.c
2024-04-26 23:13:27 -04:00
Troy
98a234d430
Add some comments in components/libc/posix/ipc/semaphore.c ( #8848 )
2024-04-24 05:46:43 +08:00
atwww
2cc88b6cf5
修复POSIX线程本地存储寻找posix线程句柄时的逻辑错误 ( #8790 )
...
* Add GCC generalized atomic operation function
* 修复POSIX线程本地存储寻找posix线程句柄时的逻辑错误
2024-04-15 23:13:24 +08:00
Troy
5bb902895c
[libc] add some posix function comments
2024-04-09 18:11:34 -04:00
Troy
3a4db99104
[libc][posix/io] add comments
2024-04-01 23:18:15 -04:00
Troy
7e492fc37c
Add comments for all functions in components/libc/posix/io/eventfd/eventfd.c
2024-03-28 21:28:46 -04:00
Shell
83e95bdff4
sync smart & dfs ( #8672 )
...
Signed-off-by: xqyjlj <xqyjlj@126.com>
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-03-28 23:42:56 +08:00
Troy
56fd6984ac
Fix the issue of incorrect return of invalid parameters in aio_write
2024-03-27 22:58:54 -04:00
Troy
51d4a9c804
Fix epoll.c file format error
2024-03-26 17:42:01 -04:00
Troy
9fc7c7569b
Fix incorrect naming of triggered
2024-03-26 17:42:01 -04:00
Troy
46d6036c28
modified: components/libc/posix/io/aio/aio.c Added some function comments
...
modified: components/libc/posix/io/aio/aio.h Align comments within the aiocb structure
modified: components/libc/posix/io/epoll/epoll.c Add comments for all functions and members within structure members
2024-03-26 17:42:01 -04:00
Troy
b228f67385
modified: components/libc/posix/delay/delay.c Added comments for all functions in this file
...
modified: components/libc/posix/signal/posix_signal.c Add comments to the sigqueue function, although it does not have an internal implementation
modified: components/libc/posix/signal/posix_signal.h Added detailed explanation to all members of the rt_signal_value enumeration
2024-03-25 18:36:17 -04:00
Shell
71560bafb5
🎯 Sync smart & scheduler codes ( #8537 )
...
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-02-23 17:49:15 +08:00
rcitachi
0c96b26c23
[sys_bind] [signalfd] update ( #8507 )
2024-01-26 22:14:02 +08:00
zmq810150896
cdad0c254a
Update epoll and timerfd ( #8330 )
2023-12-21 11:17:59 +08:00
zmq810150896
833b43dbc7
[libc][Kconfig] default open epoll/eventfd/signalfd/timerfd/select ( #8386 )
2023-12-21 01:00:26 +08:00
geniusgogo
0b6402f3cb
update libc ( #8335 )
2023-12-10 06:49:24 +08:00
zmq810150896
2790ce5357
Updated issues related to uds capacity and eventfd macro redefinition ( #8329 )
2023-12-06 13:51:13 +08:00
rcitachi
c06f4e98fc
[SAL] Update SAL,Add socketpair sendmsg recvmsg function ( #8293 )
2023-11-28 13:56:06 +08:00
xqyjlj
3283f54c7a
🎈 perf: perf rt_hw_interrupt_disable/enable ( #8042 )
...
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: Shell <smokewood@qq.com>
2023-10-25 20:31:25 +08:00
geniusgogo
ecd29fda60
Sync dfs lwp ( #8123 )
2023-10-17 13:07:59 +08:00
zmq810150896
a289ae1b18
Fixed issues with timerfd ( #8102 )
2023-10-13 19:20:50 +08:00
zmq810150896
7c2f807a7c
Add the system call timerfd and update SConscript for signalfd ( #8067 )
2023-09-23 14:18:29 +08:00
zmq810150896
092b52ab24
Adapt rt_channel, increase the generality of some rt_channel functionality on dfs v2, and standardize signalfd ( #8047 )
2023-09-20 07:54:11 +08:00
zmq810150896
7c3d966df6
Add the system call signalfd ( #8001 )
2023-09-11 14:06:08 +08:00
zhkag
0b9a808cca
[posix]修复消息队列返回长度异常 ( #8014 )
2023-09-08 18:15:03 +08:00
zmq810150896
722a5fc29d
Optimize the epoll code to remove restrictions on descriptors ( #7951 )
2023-09-06 11:22:16 +08:00
FragrantRye
2917180c21
[libc][newlib] __sdidinit is obselete
...
related:
https://github.com/RT-Thread/rt-thread/issues/7923
44b60f0c4b
Co-authored-by: Meco Man <920369182@qq.com>
2023-08-17 02:22:53 -04:00
Meco Man
b08d8672d2
[libc][posix/io/stdio] rename libc.c as posix/stdio.c
2023-08-17 02:22:53 -04:00
geniusgogo
4d20416b2f
update components & lwp. ( #7888 )
2023-08-07 12:22:14 -04:00
zmq810150896
2aa1056f19
Add fops for dfs_v2 and rt_set_errno ( #7910 )
2023-08-03 21:45:30 +08:00
zmq810150896
3f0a5e76bf
Add the system call epoll ( #7893 )
2023-08-01 17:15:41 +08:00
zmq810150896
307e9e5e98
Add the system call eventfd ( #7835 )
2023-07-27 17:24:56 +08:00
zhkag
7e5620edc3
[smart] 修复用户态 mq_receive 不能阻塞 ( #7836 )
2023-07-24 17:01:45 +08:00
xqyjlj
5f0328ee41
✨ feat(ktime): add RT_USING_KTIME to kconfig build
2023-07-20 09:25:18 -04:00
xqyjlj
0eb75ced70
[time]时钟框架重构 ( #7794 )
2023-07-17 20:11:58 +08:00
Meco Man
237bbfd968
[debug] remove RT_DEBUG_xxx
...
remove RT_DEBUG_THREAD RT_DEBUG_SCHEDULER RT_DEBUG_IPC RT_DEBUG_TIMER RT_DEBUG_IRQ RT_DEBUG_MEM RT_DEBUG_SLAB RT_DEBUG_MEMHEAP
2023-07-09 00:19:29 -04:00
zhkag
d6adf6708f
[posix] posix 的 mqueue 对接到文件系统的 fd ( #7768 )
2023-07-05 14:49:31 +08:00
Shicheng Chu
e2c031643c
[include][dbg]update: no longer use RT_DEBUG_LOG in rtdebug.h ( #7750 )
2023-06-29 11:24:25 -04:00
zhkag
077e984175
[libc]更新 libc timer id 分配方式 ( #7744 )
2023-06-29 00:01:51 +08:00
zhkag
e65509a58e
[src][components][include]消息队列支持优先级 ( #7382 )
2023-06-26 00:06:06 -04:00
zhkag
33f550cb65
[Kernel] message 可以返回消息的实际大小 ( #7709 )
2023-06-21 18:22:42 +08:00
yangfasheng
b4e59bac4e
dfs v2 修改 fd_new 的 startfd 起始值为 0 ;修复 futex_wait 超时时间换算异常; ( #7705 )
...
Signed-off-by: yangfasheng <yangfasheng@live.com>
2023-06-20 23:09:58 +08:00
heyuanjie87
0503d1e27f
[libc/termios]修改oflags定义与musl一致
2023-06-19 00:38:36 -04:00
Bernard Xiong
99e80f8d33
[dfs] Add DFS v2.0 ( #7606 )
2023-06-10 21:35:25 +08:00
Huang Xilong
c33a21509a
[comment][libc] add some comments for functions in posix_signal ( #7647 )
2023-06-10 00:41:21 -04:00
XzcUbuntu
b27f910cad
[libc][posix][signal] 增加posix_signal.c部分函数注释
2023-05-25 02:09:42 -04:00
zhkag
662aa1b7e2
[libc error] 编译错误PATH_MAX 未定义,移除 mq 中的 PATH_MAX 判断 ( #7550 )
2023-05-22 22:03:23 -04:00