diff options
Diffstat (limited to 'plugins/org.eclipse.net4j.util.doc/javadoc/org/eclipse/net4j/util/concurrent/ConcurrentValue.html')
-rw-r--r-- | plugins/org.eclipse.net4j.util.doc/javadoc/org/eclipse/net4j/util/concurrent/ConcurrentValue.html | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/plugins/org.eclipse.net4j.util.doc/javadoc/org/eclipse/net4j/util/concurrent/ConcurrentValue.html b/plugins/org.eclipse.net4j.util.doc/javadoc/org/eclipse/net4j/util/concurrent/ConcurrentValue.html index 05d225869e..b9d8aecf9d 100644 --- a/plugins/org.eclipse.net4j.util.doc/javadoc/org/eclipse/net4j/util/concurrent/ConcurrentValue.html +++ b/plugins/org.eclipse.net4j.util.doc/javadoc/org/eclipse/net4j/util/concurrent/ConcurrentValue.html @@ -101,29 +101,29 @@ Class ConcurrentValue<T></H2> </PRE>
<P>
-Allow synchronization between many threads for a specific value, e.g.: - - <pre> - MainThread cv.set(1); - Thread1 cv.acquire(3); - Thread2 cv.acquire(4); - Thread3 cv.acquire(100); - Thread4 cv.acquire(new Object() - { - public boolean equals(Object other) - { - return other.equals(2) || other.equals(3); - } - }); - Thread5 cv.acquire(1); - ... - // Thread 1,2,3 and 4 are blocked - // Thread 5 isn't blocked. - - MainThread cv.set(3); - - // Thread 1 and 4 are unblocked. - // Thread 2 and 3 are still blocked. +Allow synchronization between many threads for a specific value, e.g.:
+
+ <pre>
+ MainThread cv.set(1);
+ Thread1 cv.acquire(3);
+ Thread2 cv.acquire(4);
+ Thread3 cv.acquire(100);
+ Thread4 cv.acquire(new Object()
+ {
+ public boolean equals(Object other)
+ {
+ return other.equals(2) || other.equals(3);
+ }
+ });
+ Thread5 cv.acquire(1);
+ ...
+ // Thread 1,2,3 and 4 are blocked
+ // Thread 5 isn't blocked.
+
+ MainThread cv.set(3);
+
+ // Thread 1 and 4 are unblocked.
+ // Thread 2 and 3 are still blocked.
</pre>
<P>
@@ -263,7 +263,7 @@ reevaluate</H3> <PRE>
public void <B>reevaluate</B>()</PRE>
<DL>
-<DD>Reevaluate the condition. It is only useful if a thread is blocked at <A HREF="../../../../../org/eclipse/net4j/util/concurrent/ConcurrentValue.html#acquire(java.lang.Object)"><CODE>acquire(Object)</CODE></A> and the parameter +<DD>Reevaluate the condition. It is only useful if a thread is blocked at <A HREF="../../../../../org/eclipse/net4j/util/concurrent/ConcurrentValue.html#acquire(java.lang.Object)"><CODE>acquire(Object)</CODE></A> and the parameter
passed changed. <A HREF="../../../../../org/eclipse/net4j/util/concurrent/ConcurrentValue.html#acquire(java.lang.Object)"><CODE>acquire(Object)</CODE></A> generates a reevaluation automatically.
<P>
<DD><DL>
@@ -278,8 +278,8 @@ acquire</H3> public void <B>acquire</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> accept)
throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</A></PRE>
<DL>
-<DD>Blocking call. - <p> +<DD>Blocking call.
+ <p>
Return when value accept is equal to <A HREF="../../../../../org/eclipse/net4j/util/concurrent/ConcurrentValue.html#get()"><CODE>get()</CODE></A>.
<P>
<DD><DL>
|