diff options
author | Martin Odersky <odersky@gmail.com> | 2010-06-08 07:27:08 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-06-08 07:27:08 +0000 |
commit | d112ec1f8878b02094b68ebe849dbc8831a9c0d9 (patch) | |
tree | 5c88195fb5596c97963c51f93c94a0899ccb0d68 /src/library/scala/runtime/VolatileDoubleRef.java | |
parent | a1e29d20aa7b49caf07e7992287eb0ba8208558a (diff) | |
download | scala-d112ec1f8878b02094b68ebe849dbc8831a9c0d9.tar.gz scala-d112ec1f8878b02094b68ebe849dbc8831a9c0d9.tar.bz2 scala-d112ec1f8878b02094b68ebe849dbc8831a9c0d9.zip |
Fixed #2424. Review by dragos
Diffstat (limited to 'src/library/scala/runtime/VolatileDoubleRef.java')
-rwxr-xr-x | src/library/scala/runtime/VolatileDoubleRef.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/library/scala/runtime/VolatileDoubleRef.java b/src/library/scala/runtime/VolatileDoubleRef.java new file mode 100755 index 0000000000..4720638399 --- /dev/null +++ b/src/library/scala/runtime/VolatileDoubleRef.java @@ -0,0 +1,19 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2002-2010, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + + + +package scala.runtime; + +public class VolatileDoubleRef implements java.io.Serializable { + private static final long serialVersionUID = 8304402127373655534L; + + volatile public double elem; + public VolatileDoubleRef(double elem) { this.elem = elem; } + public String toString() { return java.lang.Double.toString(elem); } +} |