|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmoss.kernel.MWaitQueue
public class MWaitQueue
this class implements a wait-queue. Wait-queues are used for process-context operations, such as keeping track of blocked processes inside a device-driver. This class doesn't do any scheduling itself. It doesn't do any locking itself, either. Thus, lock outside if necessary.
| Constructor Summary | |
|---|---|
MWaitQueue()
constructor -- creates an empty wait-queue |
|
| Method Summary | |
|---|---|
boolean |
add_to_queue(MProcess p)
adds a process to the wait-queue |
boolean |
del_from_queue(MProcess p)
removes a specific process from the wait-queue |
MProcess |
get_from_queue()
removes the first process from the wait-queue |
boolean |
is_empty()
tests whether a queue is empty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MWaitQueue()
| Method Detail |
|---|
public boolean add_to_queue(MProcess p)
p - process to add
public MProcess get_from_queue()
public boolean del_from_queue(MProcess p)
p - process to remove
public boolean is_empty()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||