AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
PolicyLock.h File Reference
#include <mutex>

Go to the source code of this file.

Macros

#define GUARD_RETURN(mutex, retval)
 

Macro Definition Documentation

◆ GUARD_RETURN

#define GUARD_RETURN (   mutex,
  retval 
)
Value:
if (!mutex.try_lock()) \
return retval; \
std::lock_guard<decltype(mutex)> guard(mutex, std::adopt_lock)