javax.realtime
Class RefList

java.lang.Object
  |
  +--javax.realtime.RefList

class RefList
extends java.lang.Object

The goal here is to make a thread list that's accessable from a NoHeapRealtimeThread that keeps all the relevant information about the threads accessable to the scheduler. Therefore, all memory allocations/deallocations must be made explicit. RefCountAreas are explicitly unsafe currently - an interesting research project to make them safe.


Nested Class Summary
(package private)  class RefList.Elt
           
 
Field Summary
(package private)  RefList.Elt elt
           
(package private)  javax.realtime.RefCountArea ref
           
 
Constructor Summary
RefList()
           
 
Method Summary
 void add(long l)
           
 void add(java.lang.Object o)
           
 boolean contains(long lo)
           
 boolean contains(java.lang.Object o)
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 long length()
           
 void remove(long lo)
           
 void remove(java.lang.Object o)
           
 java.util.Iterator roundIterator()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ref

final javax.realtime.RefCountArea ref

elt

RefList.Elt elt
Constructor Detail

RefList

public RefList()
Method Detail

add

public void add(java.lang.Object o)

add

public void add(long l)

remove

public void remove(java.lang.Object o)

remove

public void remove(long lo)

contains

public boolean contains(java.lang.Object o)

contains

public boolean contains(long lo)

isEmpty

public boolean isEmpty()

length

public long length()

iterator

public java.util.Iterator iterator()

roundIterator

public java.util.Iterator roundIterator()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object