process_manager.cpp File Reference

#include "anchor_window.h"
#include "application_config.h"
#include "process_control.h"
#include "process_entry.h"
#include "process_manager.h"
#include <basis/auto_synch.h>
#include <basis/istring.h>
#include <basis/log_base.h>
#include <basis/mutex.h>
#include <basis/portable.h>
#include <basis/set.cpp>
#include <basis/version_record.h>
#include <data_struct/configurator.h>
#include <data_struct/section_manager.h>
#include <data_struct/string_table.h>
#include <data_struct/unique_id.h>
#include <mechanisms/ithread.h>
#include <mechanisms/time_stamp.h>
#include <opsystem/filename.h>

Include dependency graph for process_manager.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DEBUG_PROCESS_MANAGER
#define LOG(s)   CLASS_EMERGENCY_LOG(program_wide_logger(), 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(istring("the application called ") + app_name + " could not be found.")
#define COMPLAIN_PRODUCT   LOG(istring("the section for ") + product + " could not be found.")
#define GET_PROCESSES

Variables

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


Define Documentation

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

Definition at line 70 of file process_manager.cpp.

Referenced by process_manager::launch_at_startup(), process_manager::launch_now(), process_manager::query_application(), process_manager::remove_from_startup(), and process_manager::zap_process().

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

Definition at line 72 of file process_manager.cpp.

Referenced by process_manager::launch_at_startup(), process_manager::launch_now(), process_manager::query_application(), process_manager::remove_from_startup(), and process_manager::zap_process().

#define DEBUG_PROCESS_MANAGER

Definition at line 39 of file process_manager.cpp.

#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 679 of file process_manager.cpp.

Referenced by process_manager::push_timed_activities().

#define LOCK_CONFIG   auto_synchronizer l(*_config_lock)

Definition at line 64 of file process_manager.cpp.

Referenced by process_manager::launch_at_startup(), process_manager::launch_now(), process_manager::query_application(), process_manager::remove_from_startup(), and process_manager::zap_process().

#define LOCK_KIDS   auto_synchronizer l(*_scamp_lock)

Definition at line 66 of file process_manager.cpp.

Referenced by process_manager::launch_now(), and process_manager::push_timed_activities().

#define LOCK_ZOMBIES   auto_synchronizer l(*_zombie_lock)

Definition at line 65 of file process_manager.cpp.

Referenced by process_manager::push_timed_activities().

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

Definition at line 42 of file process_manager.cpp.


Variable Documentation

const int CHECK_INTERVAL = 4 * SECOND_ms

Definition at line 44 of file process_manager.cpp.

const int GRACEFUL_SLACK = 90 * SECOND_ms

Definition at line 48 of file process_manager.cpp.

Referenced by process_manager::push_timed_activities().

const int MAXIMUM_INITIAL_APP_WAIT = 4 * SECOND_ms

Definition at line 52 of file process_manager.cpp.

Referenced by process_manager::launch_now().

const int MAXIMUM_REQUEST_PAUSE = 42 * SECOND_ms

Definition at line 59 of file process_manager.cpp.

const int STARTUP_APPS_DELAY_PERIOD = 2 * SECOND_ms

Definition at line 56 of file process_manager.cpp.


Generated on Fri Aug 29 04:29:57 2008 for HOOPLE Libraries by  doxygen 1.5.1