summaryrefslogtreecommitdiff
path: root/src/library/scala/concurrent/SyncVar.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-05-17 16:24:59 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-05-17 16:26:22 +0200
commit37707cd8bd20643574d746b294016963a99431d3 (patch)
tree71b0fd2467a3bfa18d23aee5afc621700cdd12d3 /src/library/scala/concurrent/SyncVar.scala
parente36bb0b57bed4d365c252768f057348cbe72855e (diff)
downloadscala-37707cd8bd20643574d746b294016963a99431d3.tar.gz
scala-37707cd8bd20643574d746b294016963a99431d3.tar.bz2
scala-37707cd8bd20643574d746b294016963a99431d3.zip
Unprivatize methods in SyncVar.
These are still used in SBT 0.13.0-M2. This is a partial revert of ac990c1bc.
Diffstat (limited to 'src/library/scala/concurrent/SyncVar.scala')
-rw-r--r--src/library/scala/concurrent/SyncVar.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library/scala/concurrent/SyncVar.scala b/src/library/scala/concurrent/SyncVar.scala
index d22471ac0f..76d21c3dbf 100644
--- a/src/library/scala/concurrent/SyncVar.scala
+++ b/src/library/scala/concurrent/SyncVar.scala
@@ -79,7 +79,8 @@ class SyncVar[A] {
// whether or not the SyncVar is already defined. So, set has been
// deprecated in order to eventually be able to make "setting" private
@deprecated("Use `put` instead, as `set` is potentionally error-prone", "2.10.0")
- private[scala] def set(x: A): Unit = setVal(x)
+ // NOTE: Used by SBT 0.13.0-M2 and below
+ def set(x: A): Unit = setVal(x)
/** Places a value in the SyncVar. If the SyncVar already has a stored value,
* it waits until another thread takes it */
@@ -98,7 +99,8 @@ class SyncVar[A] {
// whether or not the SyncVar is already defined. So, unset has been
// deprecated in order to eventually be able to make "unsetting" private
@deprecated("Use `take` instead, as `unset` is potentionally error-prone", "2.10.0")
- private[scala] def unset(): Unit = synchronized {
+ // NOTE: Used by SBT 0.13.0-M2 and below
+ def unset(): Unit = synchronized {
isDefined = false
value = None
notifyAll()