54 return mutex.try_lock();
56 void unlock() { mutex.unlock(); }
58 using mutex_type = Mutex;
59 using native_handle_type =
typename Mutex::native_handle_type;
61 native_handle_type native_handle() {
return mutex.native_handle(); }
63 const mutex_type& get()
const {
return mutex; }
64 mutex_type& get() {
return mutex; }
72#if !(defined _MSC_FULL_VER && _MSC_FULL_VER <= 190023918)
DLL export prefix for API functions (necessary for multi-platform development)
API for render statistics output.
Wrapper for Lockable type mutexes, such as std::mutex and std::recursive_mutex.
Definition: ai_critsec.h:44
#define AiProfileBlock(...)
Macro to measure total time spent in a code block.
Definition: ai_stats.h:69