邮箱的创建:Mailbox_HandleMailbox_create(SizeT bufsize,
UInt numBufs,
Mailbox_Params *params,
Error_Block *eb)
Void Mailbox_delete(Mailbox_Handle*handle);
Mailbox_pend()是用来从邮箱中读取Bufferde,如果邮箱中没有Buffer就等待timeout 的时间;
Bool Mailbox_pend(Mailbox_Handle handle,
Ptr buf,
UInt timeout);
Mailbox_post()是用来存入Buffer到邮箱,如果邮箱已满,则等待timeout时间;
Bool Mailbox_post(Mailbox_Handle handle,
Ptr buf,
UInt timeout); |