Added support_kit_config.h configuration header. ATM it only contains a

setting to force BLockers to be semaphore style. This may help with
debugging deadlocks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25096 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-04-22 15:04:01 +00:00
parent 93027f442f
commit 0970b97bed
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,8 @@
#ifndef SUPPORT_KIT_CONFIG_H
#define SUPPORT_KIT_CONFIG_H
#define BLOCKER_ALWAYS_SEMAPHORE_STYLE 0
#endif // SUPPORT_KIT_CONFIG_H

View File

@ -12,6 +12,7 @@
#include <Locker.h>
#include <SupportDefs.h>
#include "support_kit_config.h"
//
// Data Member Documentation:
@ -188,7 +189,7 @@ BLocker::InitLocker(const char *name, bool benaphore)
if (name == NULL)
name = "some BLocker";
if (benaphore) {
if (benaphore && !BLOCKER_ALWAYS_SEMAPHORE_STYLE) {
// Because this is a benaphore, initialize the benaphore count and
// create the semaphore. Because this is a benaphore, the semaphore
// count starts at 0 (ie acquired).