org.lightwolf.process
Class CurrentProcess

java.lang.Object
  extended by org.lightwolf.process.CurrentProcess

public class CurrentProcess
extends Object


Constructor Summary
CurrentProcess()
           
 
Method Summary
static void enter()
           
static void exit()
           
static void fork()
           
static OldProcess getCurrent()
           
static void join()
           
static boolean onPath()
          Returns true if this is a fork path.
static OldProcess safeGetCurrent()
           
static OldProcess setCurrent(OldProcess process)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentProcess

public CurrentProcess()
Method Detail

getCurrent

public static OldProcess getCurrent()

safeGetCurrent

public static OldProcess safeGetCurrent()

setCurrent

public static OldProcess setCurrent(OldProcess process)

enter

public static void enter()

exit

public static void exit()

fork

public static void fork()

join

public static void join()

onPath

public static boolean onPath()
Returns true if this is a fork path. Must be called inside a fork block.