<< Previous | Next >>

OSSemPend

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

Description

Waits on a semaphore.

Parameters

pevent
Pointer to the desired semaphore's event control block

timeout
Time in clock ticks to wait for the resource. If 0, the task will wait until the resource becomes available or the event occurs.

err
Pointer to error message.

Library

UCOS2.LIB

See also

OSSemAccept, OSSemCreate, OSSemPost, OSSemQuery


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