ppsm_set_threshold()

int ppsm_set_threshold( void *handle,
                        int lower,
                        int upper );

This function sets the upper and lower threshold values for CPU loading. The arguments are:

handle
The handle returned by ppsm_init().
lower
The lower threshold (as a percentage of CPU loading from 0 to 100).
upper
The upper threshold (as a percentage of CPU loading from 0 to 100).

The ppsm_set_threshold() function returns -1 on error (e.g. lower is less than 0, or lower is greater than upper).