freeListItemsAvail.patch from lp:1479316
This commit is contained in:
committed by
Michael Davidsaver
parent
041423092f
commit
67aa96b957
@@ -148,6 +148,10 @@ epicsShareFunc void epicsShareAPI freeListCleanup(void *pvt)
|
||||
epicsShareFunc size_t epicsShareAPI freeListItemsAvail(void *pvt)
|
||||
{
|
||||
FREELISTPVT *pfl = pvt;
|
||||
return pfl->nBlocksAvailable;
|
||||
size_t nBlocksAvailable;
|
||||
epicsMutexMustLock(pfl->lock);
|
||||
nBlocksAvailable = pfl->nBlocksAvailable;
|
||||
epicsMutexUnlock(pfl->lock);
|
||||
return nBlocksAvailable;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user