Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Tries to acquire the lock without blocking for a specific number of milliseconds.
bool try_lock_for(
unsigned int _Timeout
);
Parameters
- _Timeout
The number of milliseconds to wait before timing out.
Return Value
If the lock was acquired, the value true; otherwise, the value false.
Requirements
Header: concrt.h
Namespace: concurrency