Typedef cmb_condition_demand_func
Defined in File cmb_condition.h
Typedef Documentation
- bool() cmb_condition_demand_func (const struct cmb_condition *cnd, const struct cmb_process *prc, const void *ctx)
Function prototype for the condition predicate function, taking a pointer to the condition (allowing usage by derived classes), a pointer to the process, and a
void *to any context the predicate function needs to determine atrueorfalseresult.Same as the
cmb_resourceguard_demand_func, except the first argument type, which only needs a typecast to reach the base class.- Param cnd:
Pointer to a condition object.
- Param prc:
Pointer to a process
- Param ctx:
Pointer to whatever context is needed to determine the outcome.
- Return:
trueif the demand is considered satisfied,falseif not.