try_to_lock Variable

Represents an object that can be passed to the constructor for unique_lock to indicate that the constructor should try to unlock the mutex that is also being passed to it without blocking.

const try_to_lock_t try_to_lock;

Requirements

Header: mutex

Namespace: std

See Also

Reference

<mutex>

Other Resources

Header Files