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:
Augustin Cavalier 2019-07-28 14:54:25 -04:00
parent f5cdaacd20
commit 1b333570b5

View File

@ -34,7 +34,8 @@ MultiLocker::MultiLocker(const char* baseName)
fInit(B_NO_INIT)
{
#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;
#else
// we are in debug mode!