Lines Matching refs:temp_event

886 	timed_event *temp_event = NULL;  in add_event()  local
914 for(temp_event = *event_list_tail; temp_event != NULL; temp_event = temp_event->prev) { in add_event()
915 if(event->run_time >= temp_event->run_time) { in add_event()
916 event->next = temp_event->next; in add_event()
917 event->prev = temp_event; in add_event()
918 temp_event->next = event; in add_event()
925 else if(temp_event->prev == NULL) { in add_event()
926 temp_event->prev = event; in add_event()
927 event->next = temp_event; in add_event()
990 timed_event *temp_event = NULL; in event_execution_loop() local
1066 temp_event = event_list_high; in event_execution_loop()
1071 handle_timed_event(temp_event); in event_execution_loop()
1074 if(temp_event->recurring == TRUE) in event_execution_loop()
1075 reschedule_event(temp_event, &event_list_high, &event_list_high_tail); in event_execution_loop()
1079 my_free(temp_event); in event_execution_loop()
1122 temp_event = event_list_low; in event_execution_loop()
1123 remove_event(temp_event, &event_list_low, &event_list_low_tail); in event_execution_loop()
1139 temp_event->run_time = temp_service->next_check; in event_execution_loop()
1140 reschedule_event(temp_event, &event_list_low, &event_list_low_tail); in event_execution_loop()
1172 temp_event = event_list_low; in event_execution_loop()
1173 remove_event(temp_event, &event_list_low, &event_list_low_tail); in event_execution_loop()
1182 temp_event->run_time = temp_host->next_check; in event_execution_loop()
1183 reschedule_event(temp_event, &event_list_low, &event_list_low_tail); in event_execution_loop()
1194 temp_event = event_list_low; in event_execution_loop()
1203 handle_timed_event(temp_event); in event_execution_loop()
1206 if(temp_event->recurring == TRUE) in event_execution_loop()
1207 reschedule_event(temp_event, &event_list_low, &event_list_low_tail); in event_execution_loop()
1211 my_free(temp_event); in event_execution_loop()
1476 timed_event *temp_event = NULL; in adjust_check_scheduling() local
1512 for(temp_event = event_list_low; temp_event != NULL; temp_event = temp_event->next) { in adjust_check_scheduling()
1515 if(temp_event->run_time <= first_window_time) in adjust_check_scheduling()
1517 if(temp_event->run_time > last_window_time) in adjust_check_scheduling()
1520 if(temp_event->event_type == EVENT_HOST_CHECK) { in adjust_check_scheduling()
1522 if((temp_host = (host *)temp_event->event_data) == NULL) in adjust_check_scheduling()
1530 if((unsigned long)(last_check_time + last_check_exec_time) > temp_event->run_time) in adjust_check_scheduling()
1533 last_check_time = temp_event->run_time; in adjust_check_scheduling()
1541 else if(temp_event->event_type == EVENT_SERVICE_CHECK) { in adjust_check_scheduling()
1543 if((temp_service = (service *)temp_event->event_data) == NULL) in adjust_check_scheduling()
1551 if((unsigned long)(last_check_time + last_check_exec_time) > temp_event->run_time) in adjust_check_scheduling()
1554 last_check_time = temp_event->run_time; in adjust_check_scheduling()
1603 for(temp_event = event_list_low; temp_event != NULL; temp_event = temp_event->next) { in adjust_check_scheduling()
1606 if(temp_event->run_time <= first_window_time) in adjust_check_scheduling()
1608 if(temp_event->run_time > last_window_time) in adjust_check_scheduling()
1611 if(temp_event->event_type == EVENT_HOST_CHECK) { in adjust_check_scheduling()
1613 if((temp_host = (host *)temp_event->event_data) == NULL) in adjust_check_scheduling()
1623 else if(temp_event->event_type == EVENT_SERVICE_CHECK) { in adjust_check_scheduling()
1625 if((temp_service = (service *)temp_event->event_data) == NULL) in adjust_check_scheduling()
1651 if(temp_event->event_type == EVENT_HOST_CHECK) { in adjust_check_scheduling()
1652 temp_event->run_time = new_run_time; in adjust_check_scheduling()
1657 temp_event->run_time = new_run_time; in adjust_check_scheduling()
1679 timed_event *temp_event = NULL; in compensate_for_system_time_change() local
1709 for(temp_event = event_list_high; temp_event != NULL; temp_event = temp_event->next) { in compensate_for_system_time_change()
1712 if(temp_event->compensate_for_time_change == FALSE) in compensate_for_system_time_change()
1716 if(temp_event->timing_func != NULL) { in compensate_for_system_time_change()
1717 timingfunc = temp_event->timing_func; in compensate_for_system_time_change()
1718 temp_event->run_time = (*timingfunc)(); in compensate_for_system_time_change()
1723 … adjust_timestamp_for_time_change(last_time, current_time, time_difference, &temp_event->run_time); in compensate_for_system_time_change()
1730 for(temp_event = event_list_low; temp_event != NULL; temp_event = temp_event->next) { in compensate_for_system_time_change()
1733 if(temp_event->compensate_for_time_change == FALSE) in compensate_for_system_time_change()
1737 if(temp_event->timing_func != NULL) { in compensate_for_system_time_change()
1738 timingfunc = temp_event->timing_func; in compensate_for_system_time_change()
1739 temp_event->run_time = (*timingfunc)(); in compensate_for_system_time_change()
1744 … adjust_timestamp_for_time_change(last_time, current_time, time_difference, &temp_event->run_time); in compensate_for_system_time_change()
1799 timed_event *temp_event = NULL; in resort_event_list() local
1809 for(temp_event = temp_event_list; temp_event != NULL; temp_event = next_event) { in resort_event_list()
1810 next_event = temp_event->next; in resort_event_list()
1813 temp_event->next = NULL; in resort_event_list()
1814 temp_event->prev = NULL; in resort_event_list()
1815 add_event(temp_event, event_list, event_list_tail); in resort_event_list()