|
Use of synchronized in scala.Iterator.duplicate?: msg#00408lang.scala
I was a little bit surprised to see synchronization used in the implementation of scala.Iterator.duplicate, particularly seeing as only the explicitly synchronized collections in scala.collections.mutable make use any synchronization at all. Granted there's state here, but given that the underlying collection isn't in general thread-safe it looks like the sync in duplicate is giving a false sense of security ... Cheers, Miles |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Another nit: 00408, Alexander Sergeev |
|---|---|
| Next by Date: | two things about defs: 00408, Alexander Sergeev |
| Previous by Thread: | Singleton setsi: 00408, Miles Sabin |
| Next by Thread: | two things about defs: 00408, Alexander Sergeev |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |