|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.svg.RenderingSemaphore
public class RenderingSemaphore
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 |
|---|
public RenderingSemaphore(int value)
value - int specifying the initial value of the semaphore| Method Detail |
|---|
public void acquire()
public void release()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||