2010 FRC Java API


com.sun.squawk.platform
Class SystemEvents

java.lang.Object
  extended by com.sun.squawk.platform.SystemEvents
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
SystemEventsImpl, SystemEventsImpl

public abstract class SystemEvents
extends Object
implements Runnable

Author:
dw29446

Field Summary
protected  TaskExecutor selectRunner
           
 
Constructor Summary
protected SystemEvents()
           
 
Method Summary
 void cancelIOHandler()
          Call to end the run() method.
 void run()
          IOHandler run loop.
 void startIO()
          Start
protected abstract  void waitForEvents(long timout)
          Wait for an OS event, with a timeout.
abstract  void waitForReadEvent(int fd)
           
abstract  void waitForWriteEvent(int fd)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectRunner

protected TaskExecutor selectRunner
Constructor Detail

SystemEvents

protected SystemEvents()
Method Detail

cancelIOHandler

public void cancelIOHandler()
Call to end the run() method.


run

public void run()
IOHandler run loop. Wait on select until IO occurs.

Specified by:
run in interface Runnable
See Also:
Thread.run()

startIO

public void startIO()
Start


waitForEvents

protected abstract void waitForEvents(long timout)
Wait for an OS event, with a timeout. Signal VMThread when event occurs. Try not to allocate if there are no events...

Parameters:
timout - in ms

waitForReadEvent

public abstract void waitForReadEvent(int fd)

waitForWriteEvent

public abstract void waitForWriteEvent(int fd)

2010 FRC Java API


Copyright © 2006-2009 Sun Microsystems, Inc. All Rights Reserved.