tangyuxin
be864bcdd1
[ipc] fix IAR Compilation error
2021-02-20 20:44:46 +08:00
tmmdh
9db4d44638
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2021-01-20 18:45:20 +08:00
Meco Man
3f9b3f57ea
update
2021-01-05 09:20:53 +08:00
Meco Man
cd6ca24f88
update
2021-01-04 22:34:50 +08:00
Meco Man
234f1aec99
update
2021-01-03 23:41:07 +08:00
Meco Man
661f54d1e0
update
2021-01-03 23:28:15 +08:00
Meco Man
89cf5886aa
add rt_mb_urgent() and rt_mb_urgent_wait()
2021-01-03 06:19:14 +08:00
Meco Man
3d5e79248d
[kernel] 对IPC中减减进行摸排,防止出现减出一个很大的数
2020-12-29 00:49:18 +08:00
tmmdh
55c0a9f279
fix the conflicting file.
2020-10-25 11:54:06 +08:00
mysterywolf
98f0cfbf6e
define maximum value of ipc type
2020-10-23 01:04:06 +08:00
mysterywolf
b43f7365a4
[bug fixed] add mb mq value overflow-check code
2020-10-22 07:13:49 +08:00
mysterywolf
b93b494239
[bug fixed] add mutex values' overflow-check code
2020-10-21 17:15:43 +08:00
mysterywolf
2469335e21
[fix bug] #3951
2020-10-11 17:54:39 +08:00
Bernard Xiong
c0d78d4f88
Merge pull request #3773 from ErnestChen1/event_option0717
...
[modify] if ... else if constructs to be terminated with an else clau…
2020-08-03 21:41:13 +08:00
Bernard Xiong
70142efbf2
Merge pull request #3775 from ErnestChen1/event_goto
...
[add] a macro to be isolated while using signals in rt_mutex_take fun…
2020-08-03 21:19:30 +08:00
Bernard Xiong
65d4e732cc
Merge pull request #3774 from ErnestChen1/switch_default0727
...
[add] switch default clause
2020-08-03 21:14:09 +08:00
Meco
1fe077a0be
fix在rt_event_recv函数中,如果事件已经满足无需阻塞的情况下,没有给thread->event_set/event_info赋值的问题
2020-07-29 09:57:32 +08:00
chenchaoqun
a78c6bedea
[add] a macro to be isolated while using signals in rt_mutex_take function.
2020-07-27 14:01:30 +08:00
chenchaoqun
55cfefd90a
[add] switch default clause
2020-07-27 11:50:48 +08:00
chenchaoqun
b328c1cbac
[modify] if ... else if constructs to be terminated with an else clause, which other option is invalid and delete surplus space.
2020-07-27 11:38:46 +08:00
greed-island
08c15f1b11
Update ipc.c
...
程序的分支逻辑出错。
详见修改。
2020-03-31 23:54:41 +08:00
Bernard Xiong
992d3af3ae
[kernel] code and comments cleanup
2019-12-16 13:59:46 +08:00
tangyuxin
255825835e
[kernel][ipc] 修复创建0长度的消息队列宕机问题
2019-09-27 14:21:52 +08:00
tangyuxin
e4671d2916
[kernel][ipc] add send wait support for message queue
2019-09-19 10:10:02 +08:00
iglencao
37de4d6054
Create IPC.ipch
...
这里注释应该由semaphore改为mutex
2019-08-10 22:45:00 +08:00
tyx
c8e27adf1f
[src][ipc]完善 message queue 相关定义
2019-07-09 21:34:56 +08:00
tyustli
d8eb0cfc1e
fix kernel and framework no cast type error
2019-06-18 20:09:19 +08:00
Bernard Xiong
43c1236ec9
[Kernel] code cleanup for indentation.
2019-05-09 08:57:24 +08:00
shaojinchun
7bcee9bcb1
semaphore结构中value仍改为uint16_t,加入对其设置范围的检测,加入对齐变量
2019-04-24 09:14:00 +08:00
Bernard Xiong
484afe9d2c
[Kernel] Add 64bit CPU support.
2018-10-26 06:35:42 +08:00
Bernard Xiong
ff08faf605
[Kernel] Adjust the copyright information
2018-09-25 11:06:07 +08:00
Bernard Xiong
41f7f2c284
[Kernel] Update to Apache License v2.0
...
Update license for RT-Thread kernel.
2018-09-14 22:37:43 +08:00
liang yongxiang
f706131fc6
[kernel] add assert to ipc object
2018-07-11 18:02:54 +08:00
Bernard Xiong
df64a297ab
[Kernel] Remove memory ops when SLAB and module enable
2018-06-10 18:46:11 +08:00
guozhanxin
d44790c8f9
[src/ipc.c]adjust rt_event_send() hook function position|调整rt_event_send()钩子函数位置
2018-05-18 19:59:30 +08:00
bernard
b27c7e4826
[Kernel] Add signal implementation.
...
1. Add signal implementation;
2. Change the 'rt_uint8_t' of cmd to 'int';
2017-10-15 22:31:53 +08:00
bernard
cccff34fca
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
2017-09-29 10:23:56 +08:00
bernard
e9a77b513f
[Kernel] mutex can be used before scheduler startup.
2017-09-29 10:23:49 +08:00
emlslxl
e521decf2e
根据documentation/coding_style_cn.txt约定 对内核src和include目录下的文件代码进行格式化
2017-09-15 11:02:24 +08:00
dogandog
c314417e0b
Correct comments about doxygen format
...
chang /*@{*/ to /**@{*/ and /*@}*/ to /**@}*/
2016-08-19 10:07:12 +08:00
pathletboy
63c51fbfc8
Sorry, fix missed, related #590 .
2015-11-23 16:10:49 +08:00
pathletboy
78c9ddef86
fix code indent.
2015-11-23 13:23:55 +08:00
pathletboy
30cbe3cc3e
add document.
2015-11-22 15:55:19 +08:00
pathletboy
5b03e37ae1
allow parameter "recved" can be null in function "rt_event_recv"
2015-11-21 20:55:41 +08:00
Grissiom
b72001fcac
kernel: mutex could only be released in thread context
...
Mutex has the idea of ownership, only the thread which owns the mutex
can release it. So rt_mutex_release could only be called in thread
context. Add a debug guard to it.
2013-10-14 09:50:18 +08:00
Grissiom
6f71308ef5
kernel: add RT_DEBUG_IN_THREAD_CONTEXT
...
In thread context means: 1) the scheduler has been started; 2) not in
interrupt context. It is more stronger than RT_DEBUG_NOT_IN_INTERRUPT.
With this commit, you will catch the error on situations like taking
mutex before scheduling instead of crashing on NULL pointer reference.
2013-10-11 22:51:38 +08:00
Grissiom
c465bc2c2e
rt_event_recv: add a check on the option flag
...
Either RT_EVENT_FLAG_AND or RT_EVENT_FLAG_OR should be set in the option
flag. If none of them is present, the waiting thread will never be
resumed.
2013-09-14 13:12:23 +08:00
Bernard Xiong
79392bb082
Embedded GPLv2 license.
2013-06-24 17:06:09 +08:00
Bernard Xiong
4afdf44da2
add RT_KERNEL_MALLOC/FREE
2013-04-25 14:22:07 +08:00
dzzxzz@gmail.com
1cffb60ce0
fixed the coding style in ipc.c
...
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2520 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-25 06:45:34 +00:00