org.apache.harmony.kernel.vm.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 ()

Static Private Attributes

static final Threads INSTANCE = new Threads()

Member Function Documentation

static Threads org.apache.harmony.kernel.vm.Threads.getInstance (  )  [static]

Retrieves an instance of the Threads service.

Returns:
An instance of Threads.

void org.apache.harmony.kernel.vm.Threads.unpark ( Thread  thread  ) 

Unparks the Thread that's passed.

Parameters:
thread The Thread to unpark.

void org.apache.harmony.kernel.vm.Threads.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 org.apache.harmony.kernel.vm.Threads.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.


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

Genereated on Tue Dec 9 14:09:48 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.