예제 #1
0
int resources_exhausted(Resources r) {
    if (resources_timer_expired(r)) {
	r->timer_expired = TRUE;
    }
    if (resources_memory_exhausted(r)) {
	r->memory_exhausted = TRUE;
    }
    return (r->timer_expired || r->memory_exhausted);
}
예제 #2
0
bool parse_options_timer_expired(Parse_Options opts) {
	return resources_timer_expired(opts->resources);
}
예제 #3
0
파일: api.c 프로젝트: mclumd/Alfred
int parse_options_resources_exhausted(Parse_Options opts) {
    return (resources_timer_expired(opts->resources) || resources_memory_exhausted(opts->resources));
}