thread_ipc.c.svn-base
来自「RT-Thread是发展中的下一代微内核嵌入式实时操作系统」· SVN-BASE 代码 · 共 58 行
SVN-BASE
58 行
/* * 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 + =
减小字号Ctrl + -
显示快捷键?