app_server: Use RW_LOCK_FLAG_CLONE_NAME in MultiLocker.
This behavior was always used by the semaphore-based MultiLocker, and it seems a good chunk of code depends on this, so we need to preserve the behavior.
This commit is contained in:
@@ -34,7 +34,8 @@ MultiLocker::MultiLocker(const char* baseName)
|
|||||||
fInit(B_NO_INIT)
|
fInit(B_NO_INIT)
|
||||||
{
|
{
|
||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
rw_lock_init(&fLock, baseName != NULL ? baseName : "some MultiLocker");
|
rw_lock_init_etc(&fLock, baseName != NULL ? baseName : "some MultiLocker",
|
||||||
|
baseName != NULL ? RW_LOCK_FLAG_CLONE_NAME : 0);
|
||||||
fInit = B_OK;
|
fInit = B_OK;
|
||||||
#else
|
#else
|
||||||
// we are in debug mode!
|
// we are in debug mode!
|
||||||
|
|||||||
Reference in New Issue
Block a user