in reply to Re^2: Avoid Locking Entire Hashes
in thread Avoid Locking Entire Hashes

except of course it consumes a mutex variable per row.

As requested.

BTW, I think the following line in your code is not thread safe;

oh, true! The fix is good, but the "defined" are superfluous.