简体   繁体   中英

Is dequeueAll on mutable.SynchronizedQueue thread-safe?

Looking at the source code of SynchronizedQueue.scala, it looks like dequeueAll is not overriden ? Is this a bug ?

You mean this dequeueAll ?

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

You can click "blame" on github where the helpful comment shows the ticket. Click it or ticket.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM