<< Previous | Next >>

OSQPost

INT8U OSQPost( OS_EVENT * pevent, void * msg );

Description

Sends a message to the specified queue.

Parameters

pevent
Pointer to message queue's event control block.

msg
Pointer to the message to send. A null pointer must not be sent.

Return value

OS_NO_ERR
The call was successful and the message was sent.

OS_Q_FULL
The queue cannot accept any more messages because it is full.

OS_ERR_EVENT_TYPE
If a pointer to a queue not passed.

OS_ERR_PEVENT_NULL
If pevent is a null pointer.

OS_ERR_POST_NULL_PTR
If attempting to post to a null pointer.

Library

OS_Q.C (Prior to DC 8:UCOS2.LIB)

See also

OSQAccept, OSQCreate, OSQFlush, OSQPend, OSQPostFront, OSQQuery


Dynamic C Functions << Previous | Next >> rabbit.com