Exemple #1
0
/**
 * \brief Releases the memory pool.
 * \param[in] pool memory pool
 * \return Returns U_SUCC if successful.
 */
URET uffs_PoolRelease(uffs_Pool *pool)
{
	uffs_Assert(pool, "pool missing");
	
	uffs_SemDelete(pool->sem);
	pool->sem = 0;

	return U_SUCC;
}
Exemple #2
0
/**
 * \brief Releases the memory pool.
 * \param[in] pool memory pool
 * \return Returns U_SUCC if successful.
 */
URET uffs_PoolRelease(uffs_Pool *pool)
{
	if (!uffs_Assert(pool != NULL, "pool missing"))
		return U_FAIL;
	
	if (pool->sem != OSSEM_NOT_INITED) {
		uffs_SemDelete(&pool->sem);
		pool->sem = OSSEM_NOT_INITED;
	}

	return U_SUCC;
}
void uffs_ReleaseGlobalFsLock(void)
{
	uffs_SemDelete(&_global_lock);
}
Exemple #4
0
void uffs_DeviceReleaseLock(uffs_Device *dev)
{
	uffs_SemDelete(&dev->lock.sem);
}