Skip to content
Browse files

Unprivatize methods in SyncVar.

These are still used in SBT 0.13.0-M2.

This is a partial revert of ac990c1.
  • Loading branch information...
1 parent e36bb0b commit 37707cd8bd20643574d746b294016963a99431d3 @retronym retronym committed May 17, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/library/scala/concurrent/SyncVar.scala
View
6 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()

0 comments on commit 37707cd

Please sign in to comment.
Something went wrong with that request. Please try again.