Definition in file mutex.h.
#include "nel/misc/types_nl.h"
#include "nel/misc/time_nl.h"
#include <map>
Go to the source code of this file.
Namespaces | |
namespace | NLMISC |
Defines | |
#define | ASM_ASWAP_FOR_GCC_CMPXCHG |
#define | ASM_ASWAP_FOR_GCC_XCHG |
#define | CMutex CFairMutex |
#define | CSynchronized CFairSynchronized |
#define | STORE_MUTEX_NAME |
|
Value: __asm__ volatile( \ "mov $1, %%edx;" \ "mov %1, %%ecx;" \ "mov (%%ecx), %%eax;" \ "1:nop;" \ "lock cmpxchgl %%edx, (%%ecx);" \ "jne 1b;" \ "mov %%eax, %0" \ : "=m" (result) \ : "m" (lockPtr) \ : "eax", "ecx", "edx", "memory" ); |
|
Value: __asm__ volatile( \ "mov %1, %%ecx;" \ "mov $1, %%eax;" \ "xchg %%eax, (%%ecx);" \ "mov %%eax, %0" \ : "=m" (result) \ : "m" (lockPtr) \ : "eax", "ecx", "memory" ); Definition at line 127 of file mutex.h. Referenced by NLMISC::CFastMutex::atomic_swap(). |
|
Definition at line 57 of file mutex.h. Referenced by NLMISC::IDisplayer::IDisplayer(). |
|
|
|
|