Ejemplo n.º 1
0
/*!
 * //! Fonction "réflexe" lors de l'écriture.
 * @author Ulysse Riccio
 */
void Strategy_Write(struct Cache *pcache, struct Cache_Block_Header *pbh)
{
    // on fait la meme chose que dans la lecture
    Cache_List_Move_To_End(  (struct Cache_List *) ( (pcache)->pstrategy ) , pbh);
}
Ejemplo n.º 2
0
/*!
 * LRU :
 */
void Strategy_Write(struct Cache *pcache, struct Cache_Block_Header *pbh)
{
	Cache_List_Move_To_End(pcl,pbh);
}
Ejemplo n.º 3
0
/*!
 * //! Fonction "réflexe" lors de la lecture.
 * @author Ulysse Riccio
 */
void Strategy_Read(struct Cache *pcache, struct Cache_Block_Header *pbh)
{
    /*! Transférer un élément à la fin */
    Cache_List_Move_To_End(  (struct Cache_List *) ( (pcache)->pstrategy ) , pbh);
}
Ejemplo n.º 4
0
//! Fonction "réflexe" lors de l'écriture.
void Strategy_Write(struct Cache *pcache, struct Cache_Block_Header *pb)
{
    // on écrit sur un block, le bloc change d'affection
    // FIFO => deplacement du bloc en queue de list.
    Cache_List_Move_To_End( (struct Cache_List *) pcache->pstrategy , pb );
}