adapnex::core::Mutex::try_lock

Attempts to acquire the lock for the current execution agent (thread, process, task) without blocking. If an exception is thrown, no lock is obtained.

Synopsis

Declared in <adapnex/core/sync.h>

virtual
bool
try_lock() = 0;

Return Value

true if the lock was acquired, false otherwise.

Created with MrDocs