Member functions
- (constructor)
- Construct unique_lock (public member function )
- (destructor)
- Destroy unique_lock (public member function )
Locking/unlocking
- lock
- Lock mutex (public member function )
- try_lock
- Lock mutex if not locked (public member function )
- try_lock_for
- Try to lock mutex during time span (public member function )
- try_lock_until
- Try to lock mutex until time point (public member function )
- unlock
- Unlock mutex (public member function )
Modifiers
- operator=
- Move-assign unique_lock (public member function )
- swap
- Swap unique locks (public member function )
- release
- Release mutex (public member function )
Observers
- owns_lock
- Owns lock (public member function )
- operator bool
- Return whether it owns a lock (public member function )
- mutex
- Get mutex (public member function )
来源:https://www.cnblogs.com/goingnow/p/12622582.html