Release 1.2.4

beta
deffpuzzl 2018-06-21 23:27:52 +08:00
parent f1ac59756c
commit f15dfbb33b
1 changed files with 6 additions and 1 deletions

View File

@ -57,13 +57,18 @@ long _lDeleteQueue(SATvm *pstSavm, void *pvAddr)
continue;
pstSavm->m_lEffect ++;
SET_DATA_TRUCK(pstTruck, DATA_TRUCK_NULL);
if(0 > (int)__sync_sub_and_fetch(&pv->m_lValid, 1))
{
__sync_fetch_and_add(&pv->m_lValid, 1);
break;
}
}
SET_DATA_TRUCK(pstTruck, DATA_TRUCK_NULL);
if(0 == pstSavm->m_lEffect)
{
pstSavm->m_lErrno = NO_DATA_FOUND;
return RC_FAIL;
}
return RC_SUCC;