C++ QD locking library