diff options
author | Philipp Haller <hallerp@gmail.com> | 2007-09-18 12:13:41 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2007-09-18 12:13:41 +0000 |
commit | 6c815e5740a8039410501b6d02655467b6cbe940 (patch) | |
tree | 2defce83db6ea533e7c794e416ec1176ae7a3174 /src/actors | |
parent | d3b1c7957eea64ba4c2dc7729696a97f15590bf8 (diff) | |
download | scala-6c815e5740a8039410501b6d02655467b6cbe940.tar.gz scala-6c815e5740a8039410501b6d02655467b6cbe940.tar.bz2 scala-6c815e5740a8039410501b6d02655467b6cbe940.zip |
Renamed clearProxy method to clearSelf with sli...
Renamed clearProxy method to clearSelf with slightly different
semantics.
Diffstat (limited to 'src/actors')
-rw-r--r-- | src/actors/scala/actors/Actor.scala | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/actors/scala/actors/Actor.scala b/src/actors/scala/actors/Actor.scala index 3f1d6bf161..d27054eb38 100644 --- a/src/actors/scala/actors/Actor.scala +++ b/src/actors/scala/actors/Actor.scala @@ -57,7 +57,7 @@ object Actor { } /** - * Removes any reference to an <code>ActorProxy</code> + * Removes any reference to an <code>Actor</code> instance * currently stored in thread-local storage. * * This allows to release references from threads that are @@ -65,10 +65,8 @@ object Actor { * a thread pool). Permanent references in thread-local storage * are a potential memory leak. */ - def clearProxy { - val a = tl.get.asInstanceOf[Actor] - if ((null ne a) && a.isInstanceOf[ActorProxy]) - tl.set(null) + def clearSelf { + tl.set(null) } /** |