FileDocCategorySizeDatePackage
MsgQueue.javaAPI DocExample1653Thu Feb 04 16:10:36 GMT 1999None

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);