summaryrefslogtreecommitdiff
path: root/src/actors/scala/actors/MessageQueue.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2011-07-15 20:20:47 +0000
committermichelou <michelou@epfl.ch>2011-07-15 20:20:47 +0000
commita4fb15861b271c41fba8382f3b55024b5fdc8155 (patch)
tree30e406cf90ed5c2fb6e87d1f72e300c1749d4452 /src/actors/scala/actors/MessageQueue.scala
parenta0476af6bce252a7e724e6e99e50a80f0021ce78 (diff)
downloadscala-a4fb15861b271c41fba8382f3b55024b5fdc8155.tar.gz
scala-a4fb15861b271c41fba8382f3b55024b5fdc8155.tar.bz2
scala-a4fb15861b271c41fba8382f3b55024b5fdc8155.zip
3rd round of clean ups (see r25285, r25292)
Diffstat (limited to 'src/actors/scala/actors/MessageQueue.scala')
-rw-r--r--src/actors/scala/actors/MessageQueue.scala17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/actors/scala/actors/MessageQueue.scala b/src/actors/scala/actors/MessageQueue.scala
index 777735df23..e96f3d787f 100644
--- a/src/actors/scala/actors/MessageQueue.scala
+++ b/src/actors/scala/actors/MessageQueue.scala
@@ -6,12 +6,10 @@
** |/ **
\* */
-
package scala.actors
/**
- * This class is used by our efficient message queue
- * implementation.
+ * This class is used by our efficient message queue implementation.
*
* @author Philipp Haller
*/
@@ -28,10 +26,9 @@ private[actors] class MQueueElement[Msg >: Null](val msg: Msg, val session: Outp
}
/**
- * The class <code>MessageQueue</code> provides an efficient
- * implementation of a message queue specialized for this actor
- * library. Classes in this package are supposed to be the only
- * clients of this class.
+ * The class `MessageQueue` provides an efficient implementation of a message
+ * queue specialized for this actor library. Classes in this package are
+ * supposed to be the only clients of this class.
*
* @author Philipp Haller
*/
@@ -107,7 +104,7 @@ private[actors] class MQueue[Msg >: Null](protected val label: String) {
acc
}
- /** Returns the n-th message that satisfies the predicate <code>p</code>
+ /** Returns the n-th message that satisfies the predicate `p`
* without removing it.
*/
def get(n: Int)(p: Msg => Boolean): Option[Msg] = {
@@ -129,8 +126,8 @@ private[actors] class MQueue[Msg >: Null](protected val label: String) {
def remove(n: Int)(p: (Msg, OutputChannel[Any]) => Boolean): Option[(Msg, OutputChannel[Any])] =
removeInternal(n)(p) map (x => (x.msg, x.session))
- /** Extracts the first message that satisfies the predicate <code>p</code>
- * or <code>null</code> if <code>p</code> fails for all of them.
+ /** Extracts the first message that satisfies the predicate `p`
+ * or `'''null'''` if `p` fails for all of them.
*/
def extractFirst(p: (Msg, OutputChannel[Any]) => Boolean): MQueueElement[Msg] =
removeInternal(0)(p) orNull