|
|
Flag function. Pends on a flag object and waits until one of the flags in the flag object is set or a timeout has happened. - Parameters:
-
| flg | handle to the flag object. |
| timeoutticks | timeout in timer ticks (see HZ define and MS macro). If this parameter is set to zero, the function immediately returns. If this parameter is set to INFINITE, the function will never time out. |
- Returns:
- a mask of all set flags (positive value). If zero is returned, the timeout was reached. A negative value denotes an error.
- Note:
- NOSCFG_FEATURE_FLAGS must be defined to 1 to have flag support compiled in.
POSCFG_FEATURE_FLAGWAIT must be defined to 1 to have this function compiled in.
Dependent of your configuration, this function can be defined as macro to decrease code size.
- See also:
- nosFlagCreate, nosFlagSet, nosFlagGet, HZ, MS
|