The Locker class now uses ASSERT() to be sure the semaphore could be locked.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2049 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-11-21 20:20:12 +00:00
parent 537e538aa6
commit 696b26708c
1 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@
#include <KernelExport.h>
#include "Utility.h"
#include "Debug.h"
// Configure here if and when real benaphores should be used
@ -92,8 +93,9 @@ class Locker {
: fLock(lock)
{
fStatus = lock.Lock();
ASSERT(fStatus == B_OK);
}
~Locker()
{
if (fStatus == B_OK)