mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-12 16:21:13 +00:00
shm: use (de)allocate_one() for ref counts
This commit is contained in:
parent
24874a52d8
commit
734f330e8b
|
@ -192,7 +192,7 @@ struct UnmanagedRegion
|
|||
|
||||
RefCount& MakeRefCount(uint16_t initialCount = 1)
|
||||
{
|
||||
RefCount* refCount = fRefCountPool->allocate(1).get();
|
||||
RefCount* refCount = fRefCountPool->allocate_one().get();
|
||||
new (refCount) RefCount(initialCount);
|
||||
return *refCount;
|
||||
}
|
||||
|
@ -200,7 +200,7 @@ struct UnmanagedRegion
|
|||
void RemoveRefCount(RefCount& refCount)
|
||||
{
|
||||
refCount.~RefCount();
|
||||
fRefCountPool->deallocate(&refCount, 1);
|
||||
fRefCountPool->deallocate_one(&refCount);
|
||||
}
|
||||
|
||||
~UnmanagedRegion()
|
||||
|
|
Loading…
Reference in New Issue
Block a user