org.formaria.svg
Class RenderingSemaphore

java.lang.Object
  extended by org.formaria.svg.RenderingSemaphore

public class RenderingSemaphore
extends java.lang.Object

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.

$Revision: 1.2 $


Constructor Summary
RenderingSemaphore(int value)
          Creates a new instance of RenderingSemaphore
 
Method Summary
 void acquire()
          Decrements the semaphore value and instructs all other threads using the resource to wait.
 void release()
          Increments the semaphore value and notifies all threads waiting on the resource that it is now free.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderingSemaphore

public RenderingSemaphore(int value)
Creates a new instance of RenderingSemaphore

Parameters:
value - int specifying the initial value of the semaphore
Method Detail

acquire

public void acquire()
Decrements the semaphore value and instructs all other threads using the resource to wait.


release

public void release()
Increments the semaphore value and notifies all threads waiting on the resource that it is now free.