<< Previous | Next >>

OSQPend

void *OSQPend (OS_EVENT *pevent, INT16U timeout, INT8U *err);

Description

Waits for a message to be sent to a queue.

Parameters

pevent
Pointer to message queue's event control block.

timeout
Allow task to resume execution if a message was not received by the number of clock ticks specified. Specifying 0 means the task is willing to wait forever.

err
Pointer to a variable for holding an error code.

Return value

Pointer to a message or, if a timeout occurs, a NULL pointer.

Library

OS_Q.C

See also

OSQAccept, OSQCreate, OSQFlush, OSQPost, OSQPostFront, OSQQuery


020-0059 Rev. D << Previous | Next >> µC/OS-II