os Class Reference

#include <os.hpp>

List of all members.

Static Public Member Functions

static int getenv (char *name, char *buffer, int len)
static int updateTimes ()
static double userTime ()
static double systemTime ()
static double currentTime ()
static double user_time_for (Thread *thread)
static double system_time_for (Thread *thread)
static double elapsedTime ()
static long_int elapsed_counter ()
static long_int elapsed_frequency ()
static void timerStart ()
static void timerStop ()
static void timerPrintBuffer ()
static void * get_hInstance ()
static void * get_prevInstance ()
static int get_nCmdShow ()
static int vm_page_size ()
static char * reserve_memory (int size)
static bool commit_memory (char *addr, int size)
static bool uncommit_memory (char *addr, int size)
static bool release_memory (char *addr, int size)
static bool guard_memory (char *addr, int size)
static Thread * starting_thread (int *id_addr)
static Thread * create_thread (int main(void *parameter), void *parameter, int *id_addr)
static Event * create_event (bool initial_state)
static int current_thread_id ()
static void wait_for_event (Event *event)
static void transfer (Thread *from_thread, Event *from_event, Thread *to_thread, Event *to_event)
static void transfer_and_continue (Thread *from_thread, Event *from_event, Thread *to_thread, Event *to_event)
static void terminate_thread (Thread *thread)
static void delete_event (Event *event)
static void reset_event (Event *event)
static void signal_event (Event *event)
static bool wait_for_event_or_timer (Event *event, int timeout_in_ms)
static void sleep (int ms)
static void suspend_thread (Thread *thread)
static void resume_thread (Thread *thread)
static void fetch_top_frame (Thread *thread, int **sp, int **fp, char **pc)
static void breakpoint ()
static int message_box (char *title, char *message)
static void fatalExit (int num)
static bool move_file (char *from, char *to)
static bool check_directory (char *dir_name)
static dll_func dll_lookup (char *name, DLL *library)
static DLL * dll_load (char *name)
static bool dll_unload (DLL *library)

Static Private Member Functions

static void initialize_system_info ()

Static Private Attributes

static int _vm_page_size = 0

Friends

void os_init ()


Detailed Description

Definition at line 32 of file os.hpp.


Member Function Documentation

void os::breakpoint (  )  [static]

Definition at line 76 of file os.cpp.

Referenced by breakpoint().

bool os::check_directory ( char *  dir_name  )  [static]

Definition at line 66 of file os.cpp.

References error().

Referenced by check_directory().

Here is the call graph for this function:

bool os::commit_memory ( char *  addr,
int  size 
) [static]

Definition at line 311 of file os.cpp.

References error(), and lprintf().

Referenced by VirtualSpace::expand().

Here is the call graph for this function:

Event * os::create_event ( bool  initial_state  )  [static]

Definition at line 100 of file os.cpp.

References fatal.

Referenced by DeltaProcess::DeltaProcess(), DeltaProcess::initialize_async_dll_event(), and VMProcess::VMProcess().

Thread * os::create_thread ( int   main(void *parameter),
void *  parameter,
int *  id_addr 
) [static]

Definition at line 85 of file os.cpp.

References main().

Referenced by DeltaProcess::DeltaProcess().

Here is the call graph for this function:

int os::current_thread_id (  )  [static]

Definition at line 370 of file os.cpp.

Referenced by handleCallBack().

double os::currentTime (  )  [static]

Definition at line 183 of file os.cpp.

References fileTimeAsDouble().

Here is the call graph for this function:

void os::delete_event ( Event *  event  )  [static]

Definition at line 96 of file os.cpp.

Referenced by VMProcess::terminate().

DLL * os::dll_load ( char *  name  )  [static]

Definition at line 200 of file os.cpp.

Referenced by DLLs::load().

dll_func os::dll_lookup ( char *  name,
DLL *  library 
) [static]

Definition at line 195 of file os.cpp.

Referenced by DLLs::lookup().

bool os::dll_unload ( DLL *  library  )  [static]

Definition at line 205 of file os.cpp.

Referenced by DLLs::unload().

long_int os::elapsed_counter (  )  [static]

Definition at line 148 of file os.cpp.

Referenced by TimeStamp::seconds(), elapsedTimer::start(), elapsedTimer::stop(), and TimeStamp::update().

long_int os::elapsed_frequency (  )  [static]

Definition at line 155 of file os.cpp.

References performance_frequency.

Referenced by TimeStamp::seconds(), and elapsedTimer::seconds().

double os::elapsedTime (  )  [static]

Definition at line 171 of file os.cpp.

References long_int::as_double(), initial_performance_count, and performance_frequency.

Referenced by PRIM_DECL_0().

Here is the call graph for this function:

void os::fatalExit ( int  num  )  [static]

Definition at line 191 of file os.cpp.

Referenced by evaluator::process_line(), and report_error().

void os::fetch_top_frame ( Thread *  thread,
int **  sp,
int **  fp,
char **  pc 
) [static]

Definition at line 356 of file os.cpp.

Referenced by DeltaProcess::profile_top_frame().

void * os::get_hInstance (  )  [static]

Definition at line 292 of file os.cpp.

Referenced by PRIM_DECL_1().

int os::get_nCmdShow (  )  [static]

Definition at line 294 of file os.cpp.

Referenced by PRIM_DECL_0().

void * os::get_prevInstance (  )  [static]

Definition at line 293 of file os.cpp.

Referenced by PRIM_DECL_1().

int os::getenv ( char *  name,
char *  buffer,
int  len 
) [static]

Definition at line 57 of file os.cpp.

bool os::guard_memory ( char *  addr,
int  size 
) [static]

Definition at line 328 of file os.cpp.

void os::initialize_system_info (  )  [static, private]

Definition at line 429 of file os.cpp.

int os::message_box ( char *  title,
char *  message 
) [static]

Definition at line 436 of file os.cpp.

Referenced by report_error().

bool os::move_file ( char *  from,
char *  to 
) [static]

Definition at line 62 of file os.cpp.

Referenced by check_log_file().

bool os::release_memory ( char *  addr,
int  size 
) [static]

Definition at line 324 of file os.cpp.

Referenced by VirtualSpace::release().

char * os::reserve_memory ( int  size  )  [static]

Definition at line 307 of file os.cpp.

Referenced by ReservedSpace::ReservedSpace().

void os::reset_event ( Event *  event  )  [static]

Definition at line 378 of file os.cpp.

Referenced by DeltaProcess::wait_for_async_dll().

void os::resume_thread ( Thread *  thread  )  [static]

Definition at line 348 of file os.cpp.

Referenced by Process::external_resume_current().

void os::signal_event ( Event *  event  )  [static]

Definition at line 382 of file os.cpp.

Referenced by DeltaProcess::async_dll_call_completed().

void os::sleep ( int  ms  )  [static]

Definition at line 352 of file os.cpp.

Thread * os::starting_thread ( int *  id_addr  )  [static]

Definition at line 80 of file os.cpp.

References main_thread, and main_thread_id.

Referenced by VMProcess::VMProcess().

void os::suspend_thread ( Thread *  thread  )  [static]

Definition at line 344 of file os.cpp.

Referenced by Process::external_suspend_current().

double os::system_time_for ( Thread *  thread  )  [static]

Definition at line 133 of file os.cpp.

References fileTimeAsDouble(), and main_process.

Here is the call graph for this function:

double os::systemTime (  )  [static]

Definition at line 118 of file os.cpp.

References fileTimeAsDouble(), and process_kernel_time.

Referenced by PRIM_DECL_0(), timer::start(), and timer::stop().

Here is the call graph for this function:

void os::terminate_thread ( Thread *  thread  )  [static]

Definition at line 91 of file os.cpp.

Referenced by VMProcess::terminate().

void os::timerPrintBuffer (  )  [static]

Definition at line 303 of file os.cpp.

Referenced by PRIM_DECL_0().

void os::timerStart (  )  [static]

Definition at line 299 of file os.cpp.

Referenced by PRIM_DECL_0().

void os::timerStop (  )  [static]

Definition at line 301 of file os.cpp.

Referenced by PRIM_DECL_0().

void os::transfer ( Thread *  from_thread,
Event *  from_event,
Thread *  to_thread,
Event *  to_event 
) [static]

Definition at line 333 of file os.cpp.

Referenced by Process::basic_transfer().

void os::transfer_and_continue ( Thread *  from_thread,
Event *  from_event,
Thread *  to_thread,
Event *  to_event 
) [static]

Definition at line 339 of file os.cpp.

Referenced by DeltaProcess::transfer_and_continue().

bool os::uncommit_memory ( char *  addr,
int  size 
) [static]

Definition at line 320 of file os.cpp.

Referenced by VirtualSpace::shrink().

int os::updateTimes (  )  [static]

Definition at line 106 of file os.cpp.

References main_process, process_creation_time, process_exit_time, process_kernel_time, and process_user_time.

Referenced by PRIM_DECL_0(), timer::start(), and timer::stop().

double os::user_time_for ( Thread *  thread  )  [static]

Definition at line 122 of file os.cpp.

References fileTimeAsDouble(), and main_process.

Here is the call graph for this function:

double os::userTime (  )  [static]

Definition at line 114 of file os.cpp.

References fileTimeAsDouble(), and process_user_time.

Referenced by PRIM_DECL_0(), timer::start(), and timer::stop().

Here is the call graph for this function:

static int os::vm_page_size (  )  [inline, static]

Definition at line 67 of file os.hpp.

References _vm_page_size.

Referenced by VirtualSpace::expand(), ReservedSpace::page_align_size(), Universe::page_size(), ReservedSpace::ReservedSpace(), and VirtualSpace::shrink().

void os::wait_for_event ( Event *  event  )  [static]

Definition at line 374 of file os.cpp.

Referenced by DeltaProcess::suspend_at_creation(), and DeltaProcess::wait_for_control().

bool os::wait_for_event_or_timer ( Event *  event,
int  timeout_in_ms 
) [static]

Definition at line 386 of file os.cpp.

Referenced by DeltaProcess::wait_for_async_dll().


Friends And Related Function Documentation

void os_init (  )  [friend]

Definition at line 459 of file os.cpp.


Member Data Documentation

int os::_vm_page_size = 0 [static, private]

Definition at line 34 of file os.hpp.

Referenced by vm_page_size().


The documentation for this class was generated from the following files:
Generated on Mon Oct 9 14:12:28 2006 for Strongtalk VM by  doxygen 1.4.7