<< Previous | Next >> | |
|
OS_FLAG_GRP * OSFlagDel( OS_FLAG_GRP * pgrp, INT8U opt, INT8U * err);
Description
- This function deletes an event flag group and readies all tasks pending on the event flag group. Note that:
This function must be used with care. Tasks that would normally expect the presence of the event flag group must check the return code of
OSFlagAccept()
andOSFlagPend()
.This call can potentially disable interrupts for a long time. The interrupt disable time is directly proportional to the number of tasks waiting on the event flag group.
Parameters
- pgrp
- Pointer to the desired event flag group.
- opt
- May be one of the following delete options:
- err
- Pointer to an error code. May be one of the following values:
Return value
- pevent
- Error.
- (OS_EVENT *)0
- Semaphore was successfully deleted.
Library
- OS_FLAG.C (Prior to DC 8:UCOS2.LIB)
Dynamic C Functions | << Previous | Next >> | rabbit.com |