Is dequeueAll on mutable.SynchronizedQueue is thread safe?

Looking at the source code of SynchronizedQueue.scala, does it look like dequeueAll is not being overestimated? This is mistake?

+4
source share
1 answer

Do you mean this dequeueAll ?

override def dequeueAll(p: A => Boolean): Seq[A] = synchronized { super.dequeueAll(p) } 

You can click β€œblame” on github where a helpful comment shows the ticket. Click on it or a ticket.

+3
source

All Articles