std::timed_mutex::try_lock

Tries to lock the mutex. Returns immediately. On successful lock acquisition returns true, otherwise returns false.

# Declarations

bool try_lock();

(since C++11)

# Return value

true if the lock was acquired successfully, otherwise false.

# Example

This section is incompleteReason: no example

# See also