<< 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 (Prior to DC 8:UCOS2.LIB)

See also

OSQAccept, OSQCreate, OSQFlush, OSQPost, OSQPostFront, OSQQuery


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