FileDocCategorySizeDatePackage
MsgQueue.javaAPI DocExample737Tue Jan 28 17:16:30 GMT 1997None

MsgQueue

public class MsgQueue extends Object

Fields Summary
Vector
queue
Constructors Summary
Methods Summary
public synchronized java.lang.Objectrecv()

        if (queue.size() == 0) return null;

        Object obj = queue.firstElement();
        queue.removeElementAt(0);
        return obj;
    
public synchronized voidsend(java.lang.Object obj)

         
        queue.addElement(obj);