58 return mutex.try_lock();
60 void unlock() { mutex.unlock(); }
62 using mutex_type = Mutex;
65#if !defined(_MSC_VER) || _MSC_VER < 1937
66 using native_handle_type =
typename Mutex::native_handle_type;
67 native_handle_type native_handle() {
return mutex.native_handle(); }
70 const mutex_type& get()
const {
return mutex; }
71 mutex_type& get() {
return mutex; }
79#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:48
#define AiProfileBlock(...)
Macro to measure total time spent in a code block.
Definition: ai_stats.h:69