With the concurrency tools available in the modern standard C++ library, multi-threaded programs can be created more easily than ever. One common pattern of use is that the set of related records is read and updated together for a given operation. This video describes an algorithm, which is implemented in C++, that performs this lock on the basis of a strict timestamp ordering concept.