* Added optional spinlock contention measurement feature. Enabled when
B_DEBUG_SPINLOCK_CONTENTION is defined to 1. It typedefs spinlock to a structure (thus breaking BeOS binary compatibility), containing a counter which is incremented whenever a thread has to wait for the spinlock. * Added macros for spinlock initialization and access and changed code using spinlocks accordingly. This breaks compilation for BeOS -- the macros should be defined in the respective compatibility wrappers. * Added generic syscall to get the spinlock counters for the thread and the team spinlocks. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25752 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -54,7 +54,7 @@ static bool sBlueScreenEnabled = false;
|
||||
// must always be false on startup
|
||||
static bool sDebugScreenEnabled = false;
|
||||
static bool sBlueScreenOutput = true;
|
||||
static spinlock sSpinlock = 0;
|
||||
static spinlock sSpinlock = B_SPINLOCK_INITIALIZER;
|
||||
static int32 sDebuggerOnCPU = -1;
|
||||
|
||||
static sem_id sSyslogNotify = -1;
|
||||
|
||||
Reference in New Issue
Block a user