how VLC manages cache?
Posted: 26 Aug 2009 11:35
Hello. I am programming a realtime application and for my algos, I need to know how VLC manages its cache.
For my application, I have a cache from where my main application reads data and a separate helper thread fills this cache reading files from disk. However, I can not find a good algorithm or implementation for such a cache system.
Evidently, VLC does the same task under the hood where a reader thread fills up the cache and a player thread reads from there and discard used data.
- Can someone please provide details how this has been implemented in VLC
- Or point me to the specific cpp file in source code
- Or suggest if any third party library exists for such a work?
For my application, I have a cache from where my main application reads data and a separate helper thread fills this cache reading files from disk. However, I can not find a good algorithm or implementation for such a cache system.
Evidently, VLC does the same task under the hood where a reader thread fills up the cache and a player thread reads from there and discard used data.
- Can someone please provide details how this has been implemented in VLC
- Or point me to the specific cpp file in source code
- Or suggest if any third party library exists for such a work?