Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

System Struct Reference

List of all members.

Public Types

enum  Interval { Microsec = 1, Millisec = 1000, Second = 1_000_000, Minute = 60_000_000 }

Static Public Member Functions

static ulong getMillisecs ()
static void sleep (uint interval=uint.max)
static Thread createThread (ThreadDelegate dg, bool start=false)

Public Attributes

public class VersionAres typedef
void(* 
ThreadDelegate )()
else typedef int(* ThreadDelegate )()

Detailed Description

Some system-specific functionality that doesn't belong anywhere else. This needs some further thought and refinement.

Definition at line 71 of file System.d.


Member Enumeration Documentation

enum Interval
 

Time interval multipliers. All Mango intervals are based upon microseconds.

Enumeration values:
Microsec 
Millisec 
Second 
Minute 

Definition at line 80 of file System.d.


Member Function Documentation

static ulong getMillisecs  )  [inline, static]
 

Return the number of milliseconds since January 1st 1970

Definition at line 93 of file System.d.

static void sleep uint  interval = uint.max  )  [inline, static]
 

Send this thread to sleep for a while. The time interval is measured in microseconds. Specifying a period value of uint.max will cause the calling thread to sleep forever.

Definition at line 106 of file System.d.

References version.

static Thread createThread ThreadDelegate  dg,
bool  start = false
[inline, static]
 

Definition at line 128 of file System.d.


Member Data Documentation

public class VersionAres typedef void(* ThreadDelegate)()
 

Create a thread for the given delegate, and optionally start it up.

else typedef int(* ThreadDelegate)()
 


The documentation for this struct was generated from the following file:
Generated on Sat Dec 24 17:28:42 2005 for Mango by  doxygen 1.4.0