[Cython] Acquisition counted cdef classes
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Oct 24 23:03:32 CEST 2011
mark florisson wrote:
> These will by default not lock for operations to allow
> e.g. one thread to iterate over the list and another thread to index
> it without lock contention and other general overhead.
I don't think that's safe. You can't say "I'm not modifying
this, so I don't need to lock it" because there may be another
thread that *is* in the midst of modifying it.
--
Greg
More information about the cython-devel
mailing list