📄 thread_ipc.c
字号:
/* * File : thread_ipc.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.fayfayspace.org/license/LICENSE. * * Change Logs: * Date Author Notes * 2006-07-01 Bernard the first draft *//** * @addtogroup microkernel *//*@{*/rt_int32 _rtt_ipc_send(rt_thread_id to, rt_int32 timeout){ struct rt_thread* current; struct rt_thread* to_thread; current = rt_thread_self(); to_thread = rt_thread_from_id(to); /* the destination thread invalid */ if (to_thread == NULL) return;}rt_int32 _rtt_ipc_recv(rt_thread_id *from, rt_int32 timeout){ struct rt_thread* current; struct rt_thread* to_thread; current = rt_thread_self(); to_thread = rt_thread_from_id(to); /* the destination thread invalid */ if (to_thread == NULL) return;}rt_int32 _rtt_ipc_reply(rt_thread_id from){ struct rt_thread* current; struct rt_thread* from_thread; current = rt_thread_self(); from_thread = rt_thread_from_id(from); /* the 'from' thread invalid */ if (from_thread == NULL) return;}/*@}*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -