FFmpegfs Fuse Multi Media Filesystem 2.16
|
Cache maintenance More...
#include <time.h>
Go to the source code of this file.
Functions | |
bool | start_cache_maintenance (time_t interval) |
Start cache maintenance timer. More... | |
bool | stop_cache_maintenance () |
Stop cache maintenance timer. More... | |
Cache maintenance
Creates a POSIX timer that starts the cache maintenance in preset intervals. To ensure that only one instance of FFmpegfs cleans up the cache a shared memory area and a named semaphore is also created.
The first FFmpegfs process acts as master, all subsequently started instances will be clients. If the master process goes away one of the clients will automatically take over as master.
Definition in file cache_maintenance.h.
bool start_cache_maintenance | ( | time_t | interval | ) |
Start cache maintenance timer.
[in] | interval | - Interval in seconds to run timer at. |
Definition at line 319 of file cache_maintenance.cc.
References link_up(), and start_timer().
Referenced by ffmpegfs_init().
bool stop_cache_maintenance | ( | ) |
Stop cache maintenance timer.
Definition at line 331 of file cache_maintenance.cc.
References link_down(), and stop_timer().
Referenced by ffmpegfs_destroy().