* Work-around for the KDEBUG "holder" mechanism; we actually want to lock the
mutex in another thread here than we will unlock it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26300 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e0fc5e7380
commit
846f4fa2ab
@ -474,6 +474,10 @@ BlockAllocator::Initialize(bool full)
|
|||||||
"bfs block allocator", B_LOW_PRIORITY, (void *)this);
|
"bfs block allocator", B_LOW_PRIORITY, (void *)this);
|
||||||
if (id < B_OK)
|
if (id < B_OK)
|
||||||
return _Initialize(this);
|
return _Initialize(this);
|
||||||
|
#ifdef KDEBUG
|
||||||
|
else
|
||||||
|
fLock.holder = id;
|
||||||
|
#endif
|
||||||
|
|
||||||
return resume_thread(id);
|
return resume_thread(id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user