cpp/thread/shared lock/~shared lock

Destroys the lock.

If has an associated mutex ((mutex returns a non-null pointer) and has acquired ownership of it (owns returns ), the mutex is unlocked by calling std.