Typedef cmb_condition_demand_func

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 a true or false result.

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:

true if the demand is considered satisfied, false if not.