#include <os.hpp>
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 () |
Definition at line 32 of file os.hpp.
void os::breakpoint | ( | ) | [static] |
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] |
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] |
DLL * os::dll_load | ( | char * | name | ) | [static] |
dll_func os::dll_lookup | ( | char * | name, | |
DLL * | library | |||
) | [static] |
bool os::dll_unload | ( | DLL * | library | ) | [static] |
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] |
void os::fetch_top_frame | ( | Thread * | thread, | |
int ** | sp, | |||
int ** | fp, | |||
char ** | pc | |||
) | [static] |
void * os::get_hInstance | ( | ) | [static] |
int os::get_nCmdShow | ( | ) | [static] |
void * os::get_prevInstance | ( | ) | [static] |
int os::getenv | ( | char * | name, | |
char * | buffer, | |||
int | len | |||
) | [static] |
int os::message_box | ( | char * | title, | |
char * | message | |||
) | [static] |
bool os::move_file | ( | char * | from, | |
char * | to | |||
) | [static] |
bool os::release_memory | ( | char * | addr, | |
int | size | |||
) | [static] |
char * os::reserve_memory | ( | int | size | ) | [static] |
void os::reset_event | ( | Event * | event | ) | [static] |
void os::resume_thread | ( | Thread * | thread | ) | [static] |
void os::signal_event | ( | Event * | event | ) | [static] |
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] |
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] |
void os::timerPrintBuffer | ( | ) | [static] |
void os::timerStart | ( | ) | [static] |
void os::timerStop | ( | ) | [static] |
void os::transfer | ( | Thread * | from_thread, | |
Event * | from_event, | |||
Thread * | to_thread, | |||
Event * | to_event | |||
) | [static] |
void os::transfer_and_continue | ( | Thread * | from_thread, | |
Event * | from_event, | |||
Thread * | to_thread, | |||
Event * | to_event | |||
) | [static] |
bool os::uncommit_memory | ( | char * | addr, | |
int | size | |||
) | [static] |
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] |
int os::_vm_page_size = 0 [static, private] |