|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nachos.threads.SynchList
public class SynchList
A synchronized queue.
Constructor Summary | |
---|---|
SynchList()
Allocate a new synchronized queue. |
Method Summary | |
---|---|
void |
add(Object o)
Add the specified object to the end of the queue. |
Object |
removeFirst()
Remove an object from the front of the queue, blocking until the queue is non-empty if necessary. |
static void |
selfTest()
Test that this module is working. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchList()
Method Detail |
---|
public void add(Object o)
o
- the object to add. Must not be null.public Object removeFirst()
public static void selfTest()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |