Re:Use lock addresses to enforce uniform locking order. Avoi...
by Sharlin on Monday June 15, 2015 @07:18AM
(#9718641)
Interestingly, in C and C++ the ordering of two pointers not pointing to the same array is not well-defined because the address space may not be flat. In C++ the standard function object std::less is specifically guaranteed to impose a total order on pointers even thought the builtin less-than operator does not.
[ Parent
| on HN ]
There are no comments on this comment yet.