Message6145
Jython's set is threadsafe, including under add, remove, and copy (although copy doesn't have any guarantees on what specifically will be copied through the underlying iteration). This is because of the underlying usage of ConcurrentHashMap.
However, any composite operation, much like += 1, will not be threadsafe, unless it's locked or using an appropriate primitive that supports it. Or if it's used in a thread confined fashion, of course it doesn't matter.
Regardless casual inspection of _active_sockets looks fine.
Next step is to do the memory analysis. I'll try to look into this tonight. |
|
Date |
User |
Action |
Args |
2010-10-04 22:47:09 | zyasoft | set | messageid: <1286232429.89.0.831699325745.issue1660@psf.upfronthosting.co.za> |
2010-10-04 22:47:09 | zyasoft | set | recipients:
+ zyasoft, amak, gdoutch |
2010-10-04 22:47:09 | zyasoft | link | issue1660 messages |
2010-10-04 22:47:09 | zyasoft | create | |
|