feisty meow concerns codebase  2.140
launch_manager.cpp File Reference
Include dependency graph for launch_manager.cpp:

Go to the source code of this file.

Namespaces

 application
 Implements an application lock to ensure only one is running at once.
 

Macros

#define DEBUG_PROCESS_MANAGER
 
#define LOG(s)   CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)
 
#define LOCK_CONFIG   auto_synchronizer l(*_config_lock)
 
#define LOCK_ZOMBIES   auto_synchronizer l(*_zombie_lock)
 
#define LOCK_KIDS   auto_synchronizer l(*_scamp_lock)
 
#define COMPLAIN_APPLICATION    LOG(astring("the application called ") + app_name + " could not be found.")
 
#define COMPLAIN_PRODUCT    LOG(astring("the section for ") + product + " could not be found.")
 
#define GET_PROCESSES
 

Variables

const int application::CHECK_INTERVAL = 4 * SECOND_ms
 
const int application::GRACEFUL_SLACK = 90 * SECOND_ms
 
const int application::MAXIMUM_INITIAL_APP_WAIT = 4 * SECOND_ms
 
const int application::STARTUP_APPS_DELAY_PERIOD = 2 * SECOND_ms
 
const int application::MAXIMUM_REQUEST_PAUSE = 42 * SECOND_ms
 

Macro Definition Documentation

◆ COMPLAIN_APPLICATION

#define COMPLAIN_APPLICATION    LOG(astring("the application called ") + app_name + " could not be found.")

Definition at line 78 of file launch_manager.cpp.

◆ COMPLAIN_PRODUCT

#define COMPLAIN_PRODUCT    LOG(astring("the section for ") + product + " could not be found.")

Definition at line 80 of file launch_manager.cpp.

◆ DEBUG_PROCESS_MANAGER

#define DEBUG_PROCESS_MANAGER

Definition at line 47 of file launch_manager.cpp.

◆ GET_PROCESSES

#define GET_PROCESSES
Value:
if (!retrieved_processes) { \
retrieved_processes = true; \
if (!get_processes(processes)) { \
LOG("failed to retrieve process list from OS!"); \
return; /* badness. */ \
} \
}

Definition at line 691 of file launch_manager.cpp.

◆ LOCK_CONFIG

#define LOCK_CONFIG   auto_synchronizer l(*_config_lock)

Definition at line 72 of file launch_manager.cpp.

◆ LOCK_KIDS

#define LOCK_KIDS   auto_synchronizer l(*_scamp_lock)

Definition at line 74 of file launch_manager.cpp.

◆ LOCK_ZOMBIES

#define LOCK_ZOMBIES   auto_synchronizer l(*_zombie_lock)

Definition at line 73 of file launch_manager.cpp.

◆ LOG

#define LOG (   s)    CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)

Definition at line 50 of file launch_manager.cpp.