library/src/datastructures/BP-HashTable.cc
// Attempt to Check-In a singular data entry.
Attempt to Check-In a singular data entry.
Attempt to Check - In a singular data entry .
BP_ERROR_T BP_HashRegCheckInData
(
	P_BP_HASH_TABLE_REGISTRY      hreg,
	P_BP_HASH_TABLE_KEYED_ENTRY   data
)
{
	BP_GLOBAL_HASH_TABLE_OVERRIDE(ERR_FAILURE);
	if(!data)
		return ERR_FAILURE;
	if(BP_HASH_TABLE_UNLOCK_SEM(data->lock) == ERR_FAILURE)
		return ERR_FAILURE;
	return ERR_SUCCESS;
}
BP_ERROR_T BP_HashRegCheckInData ( P_BP_HASH_TABLE_REGISTRY hreg , P_BP_HASH_TABLE_KEYED_ENTRY data ) { BP_GLOBAL_HASH_TABLE_OVERRIDE ( ERR_FAILURE ) ; if ( ! data ) return ERR_FAILURE ; if ( BP_HASH_TABLE_UNLOCK_SEM ( data -> lock ) == ERR_FAILURE ) return ERR_FAILURE ; return ERR_SUCCESS ; }
Attempt to Check-In a singular data entry.
Attempt to Check - In a singular data entry .
// macro to override hreg on null // ensure we have data // blocking semaphore lock (critical section) // return indicating success