/*! * //! 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); }
/*! * LRU : */ void Strategy_Write(struct Cache *pcache, struct Cache_Block_Header *pbh) { Cache_List_Move_To_End(pcl,pbh); }
/*! * //! 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); }
//! 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 ); }