API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent.locks. LockSupport View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      LockSupport
Implements
Subclasses
Description
public class LockSupport
  Basic thread blocking primitives for creating locks and other synchronization classes.
See also:   
Constructors
private LockSupport ()
Methods
Hide/Show inherited methods
publicstatic Object getBlocker (Thread t)
  Returns the blocker object supplied to the most recent invocation of a park method that has not yet unblocked, or null if not blocked.
publicstatic void park ()
  Disables the current thread for thread scheduling purposes unless the permit is available.
publicstatic void park (Object blocker)
  Disables the current thread for thread scheduling purposes unless the permit is available.
publicstatic void parkNanos (long nanos)
  Disables the current thread for thread scheduling purposes, for up to the specified waiting time, unless the permit is available.
publicstatic void parkNanos (Object blocker, long nanos)
  Disables the current thread for thread scheduling purposes, for up to the specified waiting time, unless the permit is available.
publicstatic void parkUntil (long deadline)
  Disables the current thread for thread scheduling purposes, until the specified deadline, unless the permit is available.
publicstatic void parkUntil (Object blocker, long deadline)
  Disables the current thread for thread scheduling purposes, until the specified deadline, unless the permit is available.
publicstatic void unpark (Thread thread)
  Makes available the permit for the given thread, if it was not already available.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar