User Tools

Site Tools


buffer-java

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
buffer-java [2007/10/04 12:49] franckbuffer-java [2007/10/04 14:03] (current) franck
Line 32: Line 32:
     @param element the element to be added.     @param element the element to be added.
   */   */
-  public void put(Object element)+  public synchronized void put(Object element)
   {   {
     while (this.inCount - this.outCount >= Buffer.SIZE)     while (this.inCount - this.outCount >= Buffer.SIZE)
Line 48: Line 48:
     @return an element of the buffer.     @return an element of the buffer.
   */   */
-  public Object get()+  public synchronized Object get()
   {   {
     while (this.incount - this.outCount <=0)     while (this.incount - this.outCount <=0)
Line 81: Line 81:
   public Consumer(Buffer buffer)   public Consumer(Buffer buffer)
   {   {
 +    super();
     this.buffer = buffer;     this.buffer = buffer;
   }   }
Line 124: Line 125:
   public Producer(Buffer buffer)   public Producer(Buffer buffer)
   {   {
 +    super();
     this.buffer = buffer;     this.buffer = buffer;
   }   }
buffer-java.1191502175.txt.gz · Last modified: 2007/10/04 12:49 by franck

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki