XINU
|
メッセージの受信を待ち、受信後にreceive()の呼び出し者にメッセージを返す。 More...
#include <xinu.h>
Go to the source code of this file.
Functions | |
umsg32 | receive (void) |
メッセージの受信を待ち、受信後にreceive()の呼び出し者にメッセージを返す。 More... | |
メッセージの受信を待ち、受信後にreceive()の呼び出し者にメッセージを返す。
Definition in file receive.c.
umsg32 receive | ( | void | ) |
メッセージの受信を待ち、受信後にreceive()の呼び出し者にメッセージを返す。
Step1. 割り込みを禁止する。
Step2. 現在のプロセスが有効なメッセージを受信していない場合は受信待ち状態に移行し、
再スケジューリングを行う。
Step3. プロセスが復帰後、メッセージを取得し、メッセージフラグをリセットする。
Step4. 割り込み状態を復元する。
Definition at line 17 of file receive.c.
References currpid, disable(), FALSE, PR_RECV, procent::prhasmsg, procent::prmsg, proctab, procent::prstate, resched(), and restore().
Referenced by main(), rdscontrol(), rdsread(), and shell().