Falcon::Sys::SystemData Class Reference

System specific Falcon VM data. More...

#include <vm_sys.h>

List of all members.

Public Member Functions

void interrupt ()
 Safe interthread VM interruption request on blocking I/O.
bool interrupted () const
 Checks wether the VM has been interrupted in a blocking wait or I/O.
void resetInterrupt ()
 Clear interruption status.
bool sleep (numeric seconds) const
 Wait for a given count of seconds.
 SystemData ()
 Creates the system data.
 ~SystemData ()
 Destroys VM specific system data.

Static Public Member Functions

static const char * getSystemType ()
 Returns overall underlying system architecture type.

Public Attributes

struct VM_SYS_DATAm_sysData


Detailed Description

System specific Falcon VM data.

Events, mutexes, pipes, sockets and all what's needed to run the VM in specific systems. System specific structures are in vm_sys_*.h, while implementation of this functions are in vm_sys_*.cpp.

The structures are opaque to the virtual machine, but they can be inspected by embedding applications and modules (i.e. for threading support).


Constructor & Destructor Documentation

Falcon::Sys::SystemData::SystemData (  ) 

Creates the system data.

This operation is granted to succeed.

Falcon::Sys::SystemData::~SystemData (  ) 

Destroys VM specific system data.

Will be performed only at ownwer vm's destruction.


Member Function Documentation

static const char* Falcon::Sys::SystemData::getSystemType (  )  [static]

Returns overall underlying system architecture type.

It may be something as WIN or POSIX. More detailed informations about underlying systems can be retreived through modules.

Returns:
a static 7bit ASCII 0 terminated C string containing a very basic description of the underlying system overall architecture where this VM runs.

void Falcon::Sys::SystemData::interrupt (  ) 

Safe interthread VM interruption request on blocking I/O.

Will work only on compliant I/O and waits.

Referenced by Falcon::VMachine::interrupt().

bool Falcon::Sys::SystemData::interrupted (  )  const

Checks wether the VM has been interrupted in a blocking wait or I/O.

Returns:
true if interrupted.

void Falcon::Sys::SystemData::resetInterrupt (  ) 

Clear interruption status.

bool Falcon::Sys::SystemData::sleep ( numeric  seconds  )  const

Wait for a given count of seconds.

Returns:
false if interrupted.


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Mon Oct 19 10:11:51 2009 for Falcon_Core by  doxygen 1.5.8