Macros used in the threading system.
#define __add_db16cycl__ NIntrinsics::YieldFor16Cycles();
MultiThread.h
SNC doesn't support inline assembly
#define AUTO_LOCK(lock) AUTO_LOCK_T(CryCriticalSection, lock)
CryThread.h
#define AUTO_LOCK_CS(csLock) CryAutoCriticalSection __AL__##csLock(csLock)
CryThread.h
#define AUTO_LOCK_T(Type, lock) PREFAST_SUPPRESS_WARNING(6246); CryAutoLock__AutoLock(lock)
CryThread.h
#define AUTO_MODIFYLOCK(p) PREFAST_SUPPRESS_WARNING(6246) AutoLockModify<CryReadModifyLock> __modifylock##__LINE__(p, __FUNC__)
CryThread.h
#define AUTO_READLOCK(p) PREFAST_SUPPRESS_WARNING(6246) AutoLockRead<CryReadModifyLock> __readlock##__LINE__(p, __FUNC__)
CryThread.h
On PS3, __FUNC__ isn't a char*, it provides some code to mimic the behaivor of __FUNC__ of other plattforms, but it wasn't threadsafe so we use __PRETTY_FUNCTION__ for PS3, also we don't want the runtime overhead of the macro emulation AUTO_READLOCK_PROT is special as it maps to a modify lock for PS3 always
#define AUTO_READLOCK_PROT(p) PREFAST_SUPPRESS_WARNING(6246) AutoLockRead<CryReadModifyLock> __readlock_prot##__LINE__(p, __FUNC__)
CryThread.h
#define CRYLOCK_HAVE_FASTLOCK 1
CryThread.h
#define DEBUG_MODIFYLOCK(p)
CryThread.h
#define DEBUG_READLOCK(p)
CryThread.h
#define ENABLE_THREADPROFILERSUPPORT 0
ThreadProfilerSupport.h
#define INVALID_AFFINITY 0
IThreadTask.h
#define MAX_TASK_THREADS_COUNT 1
IThreadTask.h
#define PIPE_FUNCTION_PROFILER(sys)
Pipe.h
defined(PROFILE_PIPE_SYS)
#define PIPE_REPLACE_SUPPORTED_FOR(type) template <> struct Pipe_ReplaceSupported{enum {Value = true};}
Pipe.h
Replacee is supported for these simple types.
#define PROFILE_PIPE_SYS
Pipe.h
defined(PROFILE_PIPE_SYS)
#define WRITE_LOCK_VAL (1<<16)
MultiThread.h