Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

Threads Class Reference

List of all members.


Detailed Description

This class must be implemented by the VM to support the Threading subsystem.

Public Member Functions

void unpark (Thread thread)
void parkFor (long nanoseconds)
void parkUntil (long time)

Static Public Member Functions

static Threads getInstance ()

Private Member Functions

 Threads ()

Static Private Attributes

static final Threads INSTANCE = new Threads()

Constructor & Destructor Documentation

Threads (  )  [private]


Member Function Documentation

static Threads getInstance (  )  [static]

Retrieves an instance of the Threads service.

Returns:
An instance of Threads.

void unpark ( Thread  thread  ) 

Unparks the Thread that's passed.

Parameters:
thread The Thread to unpark.

void parkFor ( long  nanoseconds  ) 

Park the current thread for the specified number of nanoseconds.

Parameters:
nanoseconds The number of nanoseconds to park the current thread.

void parkUntil ( long  time  ) 

Park the current thread until the specified time, as defined by System#currentTimeMillis().

Parameters:
time The absolute time to park the current thread until.


Member Data Documentation

final Threads INSTANCE = new Threads() [static, private]